Skip to content

Commit

Permalink
Web: Files: Fix showing success operation toast on empty trash
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeySafronov committed Nov 12, 2021
1 parent 1c8f091 commit d45f863
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ const EmptyTrashDialogComponent = (props) => {

const onEmptyTrash = () => {
onClose();
const translations = { deleteOperation: t("Translations:DeleteOperation") };
const translations = {
deleteOperation: t("Translations:DeleteOperation"),
successOperation: t("SuccessEmptyTrash"),
};
emptyTrash(translations);
};

Expand Down
1 change: 1 addition & 0 deletions products/ASC.Files/Client/src/store/FilesActionsStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ class FilesActionStore {
label: translations.deleteOperation,
};
await this.uploadDataStore.loopFilesOperations(data, pbData);
toastr.success(translations.successOperation);
this.updateCurrentFolder();
});
} catch (err) {
Expand Down

0 comments on commit d45f863

Please sign in to comment.