removed old ui

This commit is contained in:
Danny Coates 2018-10-24 19:32:53 -07:00
parent f0cfc19f8c
commit 7838ad586d
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
67 changed files with 17 additions and 2816 deletions

View file

@ -5,7 +5,7 @@ import { copyToClipboard, delay, openLinksInNewTab, percent } from './utils';
import * as metrics from './metrics';
import Archive from './archive';
import { bytes } from './utils';
import okDialog from './templates/okDialog';
import okDialog from './ui/okDialog';
export default function(state, emitter) {
let lastRender = 0;
@ -108,6 +108,9 @@ export default function(state, emitter) {
count: LIMITS.MAX_FILES_PER_ARCHIVE
})
);
if (state.archive.numFiles === 0) {
state.archive = null;
}
}
render();
});