use one Archive instance for state.archive
This commit is contained in:
parent
989137342b
commit
c585c34c01
6 changed files with 14 additions and 13 deletions
|
@ -11,14 +11,14 @@ module.exports = function(state, emit) {
|
|||
let left = '';
|
||||
if (state.uploading) {
|
||||
left = archiveTile.uploading(state, emit);
|
||||
} else if (state.archive) {
|
||||
} else if (state.archive.numFiles > 0) {
|
||||
left = archiveTile.wip(state, emit);
|
||||
} else {
|
||||
left = archiveTile.empty(state, emit);
|
||||
}
|
||||
archives.reverse();
|
||||
const right =
|
||||
archives.length < 1
|
||||
archives.length === 0
|
||||
? intro(state)
|
||||
: list(
|
||||
archives,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue