File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed
contentcuration/contentcuration/frontend/shared/views/files Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change 2626 v-if =" showUnsupportedFilesAlert"
2727 :title =" $tr('unsupportedFilesHeader')"
2828 :submitText =" $tr('closeButtonLabel')"
29- @submit =" showUnsupportedFilesAlert = false"
29+ @submit ="
30+ showUnsupportedFilesAlert = false;
31+ resetFileInput();
32+ "
3033 >
3134 <p >{{ unsupportedFilesText }}</p >
3235 </KModal >
3336 <KModal
3437 v-if =" showTooLargeFilesAlert"
3538 :title =" $tr('tooLargeFilesHeader')"
3639 :submitText =" $tr('closeButtonLabel')"
37- @submit =" showTooLargeFilesAlert = false"
40+ @submit ="
41+ showTooLargeFilesAlert = false;
42+ resetFileInput();
43+ "
3844 >
3945 <p >
4046 {{
4955 v-if =" showStorageExceededAlert"
5056 :title =" $tr('noStorageHeader')"
5157 :submitText =" $tr('closeButtonLabel')"
52- @submit =" showStorageExceededAlert = false"
58+ @submit ="
59+ showStorageExceededAlert = false;
60+ resetFileInput();
61+ "
5362 >
5463 <div class =" storage-alert" >
5564 <p >{{ $tr('uploadSize', { size: formatFileSize(totalUploadSize) }) }}</p >
255264 return fileUploads .filter (Boolean );
256265 });
257266 },
267+ resetFileInput () {
268+ this .$refs .fileUpload .value = ' ' ;
269+ },
258270 },
259271 $trs: {
260272 unsupportedFilesHeader: ' Unsupported files' ,
You can’t perform that action at this time.
0 commit comments