diff --git a/src/app/shared/services/error.service.ts b/src/app/shared/services/error.service.ts index be854acef1..29d7820e99 100644 --- a/src/app/shared/services/error.service.ts +++ b/src/app/shared/services/error.service.ts @@ -44,6 +44,10 @@ export class ErrorService { { regex: /Value greater than max allowed length (\d+) for param: volumeName/, translation: 'ERRORS.VOLUME.NAME_TOO_LONG' + }, + { + regex: /maxSnaps exceeds limit: (\d+) for interval type: hourly/, + translation: 'ERRORS.SNAPSHOT_POLICIES.HOURLY_TURN_OFF' } ]; diff --git a/src/app/snapshot/recurring-snapshots/recurring-snapshots.component.ts b/src/app/snapshot/recurring-snapshots/recurring-snapshots.component.ts index 45377c9794..81ad5d249a 100644 --- a/src/app/snapshot/recurring-snapshots/recurring-snapshots.component.ts +++ b/src/app/snapshot/recurring-snapshots/recurring-snapshots.component.ts @@ -103,7 +103,7 @@ export class RecurringSnapshotsComponent implements OnInit { }) } - private onError(error: any): void { + private onError(error): void { this.dialogService.alert({ message: { translationToken: error.message, diff --git a/src/i18n/en.json b/src/i18n/en.json index 23b8837258..db5dbffe47 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -111,6 +111,9 @@ "UNABLE_TO_FIND_PRIMARY_STORAGE": "Unable to find suitable primary storage when creating volume {{val1}}", "VOLUME_BUSY": "There is other active snapshot tasks on the instance to which the volume is attached, please try again later", "VOLUME_LIMIT_EXCEEDED": "Volume limit has been exceeded. You need to delete some of your volumes to create a new one." + }, + "SNAPSHOT_POLICIES": { + "HOURLY_TURN_OFF": "Hourly schedule is turned off" } }, "JOB_NOTIFICATIONS": { diff --git a/src/i18n/ru.json b/src/i18n/ru.json index 3265245a82..fda7cfa5e1 100644 --- a/src/i18n/ru.json +++ b/src/i18n/ru.json @@ -106,6 +106,9 @@ "UNABLE_TO_FIND_PRIMARY_STORAGE": "Не удалось найти подходящее основное хранилище при создании диска {{val1}}", "VOLUME_BUSY": "На виртуальной машине, к которой прикреплен этот диск, уже выполняется другое действие над снимками. Повторите попытку позже.", "VOLUME_LIMIT_EXCEEDED": "Лимит дисков превышен. Для создания новых дисков вам нужно удалить какие-либо из ранее созданных дисков." + }, + "SNAPSHOT_POLICIES": { + "HOURLY_TURN_OFF": "Почасовое расписание отключено" } }, "JOB_NOTIFICATIONS": {