Fix save prompt showing when disabled by user
This commit is contained in:
parent
77c107cd21
commit
0174d239ca
|
@ -198,7 +198,12 @@ export default class NotificationBackground {
|
||||||
normalizedUsername = normalizedUsername.toLowerCase();
|
normalizedUsername = normalizedUsername.toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const disabledAddLogin = await this.storageService.get<boolean>(ConstantsService.disableAddLoginNotificationKey);
|
||||||
if (await this.vaultTimeoutService.isLocked()) {
|
if (await this.vaultTimeoutService.isLocked()) {
|
||||||
|
if (disabledAddLogin) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!await this.allowPersonalOwnership()) {
|
if (!await this.allowPersonalOwnership()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -211,8 +216,6 @@ export default class NotificationBackground {
|
||||||
const usernameMatches = ciphers.filter(c =>
|
const usernameMatches = ciphers.filter(c =>
|
||||||
c.login.username != null && c.login.username.toLowerCase() === normalizedUsername);
|
c.login.username != null && c.login.username.toLowerCase() === normalizedUsername);
|
||||||
if (usernameMatches.length === 0) {
|
if (usernameMatches.length === 0) {
|
||||||
const disabledAddLogin = await this.storageService.get<boolean>(
|
|
||||||
ConstantsService.disableAddLoginNotificationKey);
|
|
||||||
if (disabledAddLogin) {
|
if (disabledAddLogin) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue