Skip to content

Commit

Permalink
Update ui for gc history and banner message (#19094)
Browse files Browse the repository at this point in the history
1. Fixes #19031
2. Fixes #19049

Signed-off-by: AllForNothing <[email protected]>
  • Loading branch information
AllForNothing authored Aug 3, 2023
1 parent cdd3f26 commit 1d81b3d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
}

.detail {
width: 12rem !important;
min-width: 12rem !important;
}
Original file line number Diff line number Diff line change
Expand Up @@ -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]="
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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() {
Expand Down Expand Up @@ -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;
}
}

0 comments on commit 1d81b3d

Please sign in to comment.