clear settings after removing last file from wip
This commit is contained in:
parent
7f9674f494
commit
fb9f35413c
|
@ -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();
|
||||
});
|
||||
|
||||
|
|
|
@ -446,7 +446,7 @@ module.exports.empty = function(state, emit) {
|
|||
for="file-upload"
|
||||
role="button"
|
||||
class="btn rounded-lg flex items-center mt-4"
|
||||
title="${state.translate('addFilesButtonWithSizeUpdate', {
|
||||
title="${state.translate('addFilesButton', {
|
||||
size: bytes(state.user.maxSize)
|
||||
})}"
|
||||
>
|
||||
|
|
Loading…
Reference in New Issue