mirror of
https://github.com/bitwarden/clients.git
synced 2026-07-16 21:03:22 +08:00
Pm 21068 defect when vault is locked the notification bar header is missing and the x button placed next to bitwarden shield icon (#14586)
* PM-21068 if notificationRefresh flag is enabled do not render unlock notification * remove testing bang
This commit is contained in:
parent
961be9ed6a
commit
72b585fb87
@ -542,10 +542,15 @@ export default class NotificationBackground {
|
||||
* @param tab - The tab that the message was sent from
|
||||
*/
|
||||
private async unlockVault(message: NotificationBackgroundExtensionMessage, tab: chrome.tabs.Tab) {
|
||||
const notificationRefreshFlagEnabled = await this.getNotificationFlag();
|
||||
if (message.data?.skipNotification) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (notificationRefreshFlagEnabled) {
|
||||
return;
|
||||
}
|
||||
|
||||
const currentAuthStatus = await this.getAuthStatus();
|
||||
if (currentAuthStatus !== AuthenticationStatus.Locked || this.notificationQueue.length) {
|
||||
return;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user