updated android to work with changes to app/archive.js (#1074)

This commit is contained in:
Danny Coates 2019-01-08 12:46:16 -08:00 committed by Donovan Preston
parent 4e0425ad7e
commit eb9fba3da6
2 changed files with 3 additions and 1 deletions

View File

@ -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;

View File

@ -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 {