mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-30 14:13:43 +01:00
Modify gc ui
Signed-off-by: AllForNothing <sshijun@vmware.com>
This commit is contained in:
parent
5cf72e3ba4
commit
a337dcf517
@ -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>
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user