diff --git a/web/ASC.Web.Client/src/components/pages/Settings/categories/data-management/backup/manual-backup/index.js b/web/ASC.Web.Client/src/components/pages/Settings/categories/data-management/backup/manual-backup/index.js index 98e910b8e3..25311e010c 100644 --- a/web/ASC.Web.Client/src/components/pages/Settings/categories/data-management/backup/manual-backup/index.js +++ b/web/ASC.Web.Client/src/components/pages/Settings/categories/data-management/backup/manual-backup/index.js @@ -92,7 +92,7 @@ class ManualBackup extends React.Component { setDownloadingProgress(1); getIntervalProgress(t); } catch (e) { - toastr.error(`${t("BackupCreatedError")}`); + toastr.error(t("BackupCreatedError")); console.error(err); } }; diff --git a/web/ASC.Web.Client/src/store/BackupStore.js b/web/ASC.Web.Client/src/store/BackupStore.js index 858777b926..8be1416a57 100644 --- a/web/ASC.Web.Client/src/store/BackupStore.js +++ b/web/ASC.Web.Client/src/store/BackupStore.js @@ -315,7 +315,7 @@ class BackupStore { } } } catch (e) { - toastr.error(`${t("BackupCreatedError")}`); + toastr.error(t("BackupCreatedError")); this.clearSessionStorage(); } }; @@ -340,7 +340,7 @@ class BackupStore { if (error.length > 0 && progress !== 100) { clearInterval(timerId); - this.timerId && toastr.error(`${t("BackupCreatedError")}`); + this.timerId && toastr.error(t("BackupCreatedError")); this.timerId = null; this.clearSessionStorage(); this.downloadingProgress = 100; @@ -359,7 +359,7 @@ class BackupStore { this.temporaryLink = link; } - this.timerId && toastr.success(`${t("BackupCreatedSuccess")}`); + this.timerId && toastr.success(t("BackupCreatedSuccess")); this.timerId = null; return; @@ -376,7 +376,7 @@ class BackupStore { clearInterval(this.timerId); this.clearSessionStorage(); this.downloadingProgress = 100; - this.timerId && toastr.error(`${t("BackupCreatedError")}`); + this.timerId && toastr.error(t("BackupCreatedError")); this.timerId = null; } }, 1000);