diff --git a/src/app/snapshot/recurring-snapshots/day-of-week/day-of-week.component.html b/src/app/snapshot/recurring-snapshots/day-of-week/day-of-week.component.html index 95fb2a5e9a..d3880f71a5 100644 --- a/src/app/snapshot/recurring-snapshots/day-of-week/day-of-week.component.html +++ b/src/app/snapshot/recurring-snapshots/day-of-week/day-of-week.component.html @@ -1,4 +1,4 @@ - - -
- +
-
-
- +
+ +
+
diff --git a/src/app/snapshot/recurring-snapshots/policy-editor/policy-editor.component.scss b/src/app/snapshot/recurring-snapshots/policy-editor/policy-editor.component.scss index dbcd546187..42e5dfd654 100644 --- a/src/app/snapshot/recurring-snapshots/policy-editor/policy-editor.component.scss +++ b/src/app/snapshot/recurring-snapshots/policy-editor/policy-editor.component.scss @@ -7,6 +7,16 @@ align-content: space-between; } -.flex-container *:first-child { - flex: 1; +.column { + min-width: 300px; + max-width: 300px; + &:first-child { + margin-right: 10px; + } + &:last-child { + margin-left: 10px; + display: flex; + align-items: center; + justify-content: space-between; + } } diff --git a/src/app/snapshot/recurring-snapshots/policy-editor/policy-editor.component.ts b/src/app/snapshot/recurring-snapshots/policy-editor/policy-editor.component.ts index eac2db39b5..c7cd001ff9 100644 --- a/src/app/snapshot/recurring-snapshots/policy-editor/policy-editor.component.ts +++ b/src/app/snapshot/recurring-snapshots/policy-editor/policy-editor.component.ts @@ -1,10 +1,4 @@ -import { - ChangeDetectionStrategy, - Component, - EventEmitter, - Input, - Output -} from '@angular/core'; +import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core'; import { TimeFormat } from '../../../shared/services/language.service'; import { PolicyType } from '../recurring-snapshots.component'; import { TimeZone } from '../time-zone/time-zone.service'; diff --git a/src/app/snapshot/recurring-snapshots/policy-editor/weekly/weekly-policy.component.html b/src/app/snapshot/recurring-snapshots/policy-editor/weekly/weekly-policy.component.html index ccff4f9a99..9f42f44ddc 100644 --- a/src/app/snapshot/recurring-snapshots/policy-editor/weekly/weekly-policy.component.html +++ b/src/app/snapshot/recurring-snapshots/policy-editor/weekly/weekly-policy.component.html @@ -1,12 +1,12 @@
- - {{ 'SNAPSHOT_POLICIES.TITLE' | translate }}
+
+ +
+
{{ 'SNAPSHOT_POLICIES.NO_RESULTS' | translate }}
>
-
- -
- - -
-
+
+
diff --git a/src/app/snapshot/recurring-snapshots/recurring-snapshots.component.scss b/src/app/snapshot/recurring-snapshots/recurring-snapshots.component.scss index bc63a647c3..82948b97f9 100644 --- a/src/app/snapshot/recurring-snapshots/recurring-snapshots.component.scss +++ b/src/app/snapshot/recurring-snapshots/recurring-snapshots.component.scss @@ -7,13 +7,15 @@ width: 730px !important; } /deep/ .mat-dialog-content { - overflow: hidden; .mat-dialog-actions { margin-bottom: 0px; } } -.editor, -.list { +.editor { margin-top: 10px; } + +.list { + margin-bottom: 30px; +} diff --git a/src/app/snapshot/recurring-snapshots/stored-number/stored-number.component.html b/src/app/snapshot/recurring-snapshots/stored-number/stored-number.component.html index cd7f935876..9d3d37adb1 100644 --- a/src/app/snapshot/recurring-snapshots/stored-number/stored-number.component.html +++ b/src/app/snapshot/recurring-snapshots/stored-number/stored-number.component.html @@ -1,4 +1,4 @@ - + { - return this.translateService.get('BETWEEN', { + return this.translateService.get('SNAPSHOT_POLICIES.BETWEEN', { lowerLimit: this.min, upperLimit: this.max }); diff --git a/src/i18n/en.json b/src/i18n/en.json index 2cb69ab55b..45d10b23dc 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -964,6 +964,7 @@ "SNAPSHOT_POLICIES": { "TITLE": "Recurring snapshots", "SCHEDULED_SNAPSHOTS": "Scheduled snapshots", + "NO_RESULTS": "No recurring snapshot schedule", "KEEP": "Keep", "STORE_SNAPSHOTS": "Number of stored snapshots", "MINUTE": "Minute", @@ -978,7 +979,8 @@ "HOURLY": "Hourly", "DAILY": "Daily", "WEEKLY": "Weekly", - "MONTHLY": "Monthly" + "MONTHLY": "Monthly", + "BETWEEN": "From {{ lowerLimit }} to {{ upperLimit }}" }, "SUGGESTION_DIALOG": { "WOULD_YOU_LIKE_TO_CREATE_VM": "Would you like to create a virtual machine?", diff --git a/src/i18n/ru.json b/src/i18n/ru.json index 6d41118b0e..d214a89000 100644 --- a/src/i18n/ru.json +++ b/src/i18n/ru.json @@ -964,6 +964,7 @@ "SNAPSHOT_POLICIES": { "TITLE": "Повторяемые снимки", "SCHEDULED_SNAPSHOTS": "Расписание снимков", + "NO_RESULTS": "Расписание снимков не найдено", "KEEP": "Сохранять", "STORE_SNAPSHOTS": "Количество хранимых снимков", "MINUTE": "Минута", @@ -978,7 +979,8 @@ "HOURLY": "Ежечасно", "DAILY": "Ежедневно", "WEEKLY": "Еженедельно", - "MONTHLY": "Ежемесячно" + "MONTHLY": "Ежемесячно", + "BETWEEN": "От {{ lowerLimit }} до {{ upperLimit }}" }, "SUGGESTION_DIALOG": { "WOULD_YOU_LIKE_TO_CREATE_VM": "Хотите создать виртуальную машину?",