mirror of
https://github.com/goharbor/harbor.git
synced 2024-10-08 02:07:31 +02:00
Merge pull request #2470 from wknet123/master-endpoint-integration
Fix global message display issue
This commit is contained in:
commit
65ef1f70c1
@ -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()">
|
<clr-alert [clrAlertType]="globalMessage.type" [clrAlertAppLevel]="isAppLevel" [(clrAlertClosed)]="!globalMessageOpened" (clrAlertClosedChange)="onClose()">
|
||||||
<div class="alert-item">
|
<div class="alert-item">
|
||||||
<span class="alert-text">
|
<span class="alert-text">
|
||||||
|
@ -33,7 +33,6 @@ export class MessageComponent implements OnInit, OnDestroy {
|
|||||||
globalMessageOpened: boolean;
|
globalMessageOpened: boolean;
|
||||||
messageText: string = "";
|
messageText: string = "";
|
||||||
timer: any = null;
|
timer: any = null;
|
||||||
hideOuter: boolean = true;
|
|
||||||
|
|
||||||
appLevelMsgSub: Subscription;
|
appLevelMsgSub: Subscription;
|
||||||
msgSub: Subscription;
|
msgSub: Subscription;
|
||||||
@ -79,8 +78,6 @@ export class MessageComponent implements OnInit, OnDestroy {
|
|||||||
let hackDom: any = queryDoms[0];
|
let hackDom: any = queryDoms[0];
|
||||||
hackDom.className += ' alert-global alert-global-align';
|
hackDom.className += ' alert-global alert-global-align';
|
||||||
}
|
}
|
||||||
|
|
||||||
this.hideOuter = false;
|
|
||||||
}, 0);
|
}, 0);
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -138,6 +135,5 @@ export class MessageComponent implements OnInit, OnDestroy {
|
|||||||
clearTimeout(this.timer);
|
clearTimeout(this.timer);
|
||||||
}
|
}
|
||||||
this.globalMessageOpened = false;
|
this.globalMessageOpened = false;
|
||||||
this.hideOuter = true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user