mirror of
https://github.com/goharbor/harbor.git
synced 2025-03-11 06:04:11 +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">
|
<form class="clr-form clr-form-horizontal">
|
||||||
<clr-checkbox-container>
|
<clr-checkbox-container>
|
||||||
<label class="parameters">{{'GC.PARAMETERS' | translate}}</label>
|
|
||||||
<clr-checkbox-wrapper>
|
<clr-checkbox-wrapper>
|
||||||
<input type="checkbox" clrCheckbox name="delete_untagged" id="delete_untagged"
|
<input type="checkbox" clrCheckbox name="delete_untagged" id="delete_untagged"
|
||||||
[(ngModel)]="shouldDeleteUntagged"/>
|
[(ngModel)]="shouldDeleteUntagged"/>
|
||||||
@ -9,7 +8,7 @@
|
|||||||
</clr-checkbox-container>
|
</clr-checkbox-container>
|
||||||
</form>
|
</form>
|
||||||
<div class="cron-selection">
|
<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>
|
[originCron]='originCron' (inputvalue)="scheduleGc($event)"></cron-selection>
|
||||||
<button class="btn btn-outline gc-start-btn" (click)="gcNow()"
|
<button class="btn btn-outline gc-start-btn" (click)="gcNow()"
|
||||||
[disabled]="disableGC">{{'GC.GC_NOW' | translate}}</button>
|
[disabled]="disableGC">{{'GC.GC_NOW' | translate}}</button>
|
||||||
|
@ -29,8 +29,8 @@ export class GcComponent implements OnInit {
|
|||||||
schedule: GCSchedule = {};
|
schedule: GCSchedule = {};
|
||||||
originCron: OriginCron;
|
originCron: OriginCron;
|
||||||
disableGC: boolean = false;
|
disableGC: boolean = false;
|
||||||
getText = 'CONFIG.GC';
|
getText = '';
|
||||||
getLabelCurrent = 'GC.CURRENT_SCHEDULE';
|
getLabelCurrent = '';
|
||||||
@Output() loadingGcStatus = new EventEmitter<boolean>();
|
@Output() loadingGcStatus = new EventEmitter<boolean>();
|
||||||
@ViewChild(CronScheduleComponent, {static: false})
|
@ViewChild(CronScheduleComponent, {static: false})
|
||||||
CronScheduleComponent: CronScheduleComponent;
|
CronScheduleComponent: CronScheduleComponent;
|
||||||
|
Loading…
Reference in New Issue
Block a user