From eb9fba3da693d52e5c72106eb0c806dcbfea0e02 Mon Sep 17 00:00:00 2001 From: Danny Coates Date: Tue, 8 Jan 2019 12:46:16 -0800 Subject: [PATCH] updated android to work with changes to app/archive.js (#1074) --- android/android.js | 2 ++ android/pages/home.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/android/android.js b/android/android.js index ad6c98b1..4b8c3607 100644 --- a/android/android.js +++ b/android/android.js @@ -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; diff --git a/android/pages/home.js b/android/pages/home.js index 78eb649f..87e49e9c 100644 --- a/android/pages/home.js +++ b/android/pages/home.js @@ -36,7 +36,7 @@ module.exports = function(state, emit) { content = html`
${archiveTile.uploading(state, emit)}
`; - } else if (state.archive) { + } else if (state.archive.numFiles > 0) { content = archiveTile.wip(state, emit); button = ''; } else {