updated android to work with changes to app/archive.js (#1074)
This commit is contained in:
parent
4e0425ad7e
commit
eb9fba3da6
|
@ -26,6 +26,7 @@ import Raven from 'raven-js';
|
|||
import { setApiUrlPrefix } from '../app/api';
|
||||
import metrics from '../app/metrics';
|
||||
//import assets from '../common/assets';
|
||||
import Archive from '../app/archive';
|
||||
import Header from '../app/ui/header';
|
||||
import storage from '../app/storage';
|
||||
import controller from '../app/controller';
|
||||
|
@ -83,6 +84,7 @@ function body(main) {
|
|||
state.capabilities = {
|
||||
account: true
|
||||
}; //TODO
|
||||
state.archive = new Archive();
|
||||
state.storage = storage;
|
||||
state.user = new User(storage);
|
||||
state.raven = Raven;
|
||||
|
|
|
@ -36,7 +36,7 @@ module.exports = function(state, emit) {
|
|||
content = html`
|
||||
<div class="p-6 w-full">${archiveTile.uploading(state, emit)}</div>
|
||||
`;
|
||||
} else if (state.archive) {
|
||||
} else if (state.archive.numFiles > 0) {
|
||||
content = archiveTile.wip(state, emit);
|
||||
button = '';
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue