Modify gc ui

Signed-off-by: AllForNothing <sshijun@vmware.com>
This commit is contained in:
AllForNothing 2020-04-15 11:06:17 +08:00
parent 5cf72e3ba4
commit a337dcf517
2 changed files with 3 additions and 4 deletions

View File

@ -1,6 +1,5 @@
<form class="clr-form clr-form-horizontal">
<clr-checkbox-container>
<label class="parameters">{{'GC.PARAMETERS' | translate}}</label>
<clr-checkbox-wrapper>
<input type="checkbox" clrCheckbox name="delete_untagged" id="delete_untagged"
[(ngModel)]="shouldDeleteUntagged"/>
@ -9,7 +8,7 @@
</clr-checkbox-container>
</form>
<div class="cron-selection">
<cron-selection [buttonMarginLeft]="'200px'" [labelCurrent]="getLabelCurrent" #CronScheduleComponent [labelEdit]='getText'
<cron-selection [buttonMarginLeft]="'0'" [labelCurrent]="getLabelCurrent" #CronScheduleComponent [labelEdit]='getText'
[originCron]='originCron' (inputvalue)="scheduleGc($event)"></cron-selection>
<button class="btn btn-outline gc-start-btn" (click)="gcNow()"
[disabled]="disableGC">{{'GC.GC_NOW' | translate}}</button>

View File

@ -29,8 +29,8 @@ export class GcComponent implements OnInit {
schedule: GCSchedule = {};
originCron: OriginCron;
disableGC: boolean = false;
getText = 'CONFIG.GC';
getLabelCurrent = 'GC.CURRENT_SCHEDULE';
getText = '';
getLabelCurrent = '';
@Output() loadingGcStatus = new EventEmitter<boolean>();
@ViewChild(CronScheduleComponent, {static: false})
CronScheduleComponent: CronScheduleComponent;