mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-03 05:21:38 +01:00
Update ui for gc history and banner message (#19094)
1. Fixes #19031 2. Fixes #19049 Signed-off-by: AllForNothing <sshijun@vmware.com>
This commit is contained in:
parent
cdd3f267b5
commit
1d81b3d8ad
@ -20,5 +20,5 @@
|
||||
}
|
||||
|
||||
.detail {
|
||||
width: 12rem !important;
|
||||
min-width: 12rem !important;
|
||||
}
|
||||
|
@ -465,7 +465,7 @@
|
||||
clrDate
|
||||
type="date"
|
||||
id="to"
|
||||
min="{{ minDateForEndDay | date : 'yyyy-MM-dd' }}"
|
||||
min="{{ minDateForEndDay() | date : 'yyyy-MM-dd' }}"
|
||||
autocomplete="off"
|
||||
[(ngModel)]="messageToDate"
|
||||
[disabled]="
|
||||
|
@ -51,8 +51,6 @@ export class SystemSettingsComponent implements OnInit, OnDestroy {
|
||||
messageToDateCopy: Date;
|
||||
bannerRefreshSub: Subscription;
|
||||
currentDate: Date = new Date();
|
||||
minDateForEndDay: Date;
|
||||
|
||||
@ViewChild('systemConfigFrom') systemSettingsForm: NgForm;
|
||||
|
||||
constructor(
|
||||
@ -62,9 +60,6 @@ export class SystemSettingsComponent implements OnInit, OnDestroy {
|
||||
private event: EventService
|
||||
) {
|
||||
this.downloadLink = CURRENT_BASE_HREF + '/systeminfo/getcert';
|
||||
this.minDateForEndDay = this.messageFromDate
|
||||
? this.messageFromDate
|
||||
: this.currentDate;
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
@ -300,4 +295,8 @@ export class SystemSettingsComponent implements OnInit, OnDestroy {
|
||||
translateMessageType(type: string): string {
|
||||
return BannerMessageI18nMap[type] || type;
|
||||
}
|
||||
|
||||
minDateForEndDay(): Date {
|
||||
return this.messageFromDate ? this.messageFromDate : this.currentDate;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user