mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-07 22:50:53 +03:00
clear settings after removing last file from wip
This commit is contained in:
@@ -55,6 +55,9 @@ export default function(state, emitter) {
|
||||
|
||||
emitter.on('removeUpload', file => {
|
||||
state.archive.remove(file);
|
||||
if (state.archive.numFiles === 0) {
|
||||
state.archive.clear();
|
||||
}
|
||||
render();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user