mirror of
https://github.com/goharbor/harbor
synced 2025-04-16 18:27:59 +00:00
Fix global message display issue
This commit is contained in:
parent
2e5a4003a8
commit
0c15dac241
|
@ -1,4 +1,4 @@
|
|||
<div class="global-message-alert" [hidden]="hideOuter">
|
||||
<div [class.global-message-alert]="!isAppLevel">
|
||||
<clr-alert [clrAlertType]="globalMessage.type" [clrAlertAppLevel]="isAppLevel" [(clrAlertClosed)]="!globalMessageOpened" (clrAlertClosedChange)="onClose()">
|
||||
<div class="alert-item">
|
||||
<span class="alert-text">
|
||||
|
|
|
@ -33,8 +33,7 @@ export class MessageComponent implements OnInit, OnDestroy {
|
|||
globalMessageOpened: boolean;
|
||||
messageText: string = "";
|
||||
timer: any = null;
|
||||
hideOuter: boolean = true;
|
||||
|
||||
|
||||
appLevelMsgSub: Subscription;
|
||||
msgSub: Subscription;
|
||||
clearSub: Subscription;
|
||||
|
@ -79,8 +78,6 @@ export class MessageComponent implements OnInit, OnDestroy {
|
|||
let hackDom: any = queryDoms[0];
|
||||
hackDom.className += ' alert-global alert-global-align';
|
||||
}
|
||||
|
||||
this.hideOuter = false;
|
||||
}, 0);
|
||||
|
||||
}
|
||||
|
@ -138,6 +135,5 @@ export class MessageComponent implements OnInit, OnDestroy {
|
|||
clearTimeout(this.timer);
|
||||
}
|
||||
this.globalMessageOpened = false;
|
||||
this.hideOuter = true;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user