Merge pull request #11621 from AllForNothing/gc-ui

Modify gc ui
This commit is contained in:
Will Sun 2020-04-15 22:01:59 +08:00 committed by GitHub
commit 205e3a969f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;