1
0
mirror of https://github.com/bitwarden/web synced 2025-12-15 07:43:16 +00:00

Fix warning banner logic and open link in new tab (#909)

This commit is contained in:
Thomas Rittson
2021-04-06 06:26:04 +10:00
committed by GitHub
parent cd20b1c102
commit b28eaa1aae
2 changed files with 6 additions and 2 deletions

View File

@@ -39,6 +39,7 @@ export class AccessComponent implements OnInit {
showText = false;
unavailable = false;
error = false;
hideEmail = false;
private id: string;
private key: string;
@@ -131,6 +132,7 @@ export class AccessComponent implements OnInit {
async load() {
this.unavailable = false;
this.error = false;
this.hideEmail = false;
const keyArray = Utils.fromUrlB64ToArray(this.key);
this.accessRequest = new SendAccessRequest();
if (this.password != null) {
@@ -162,5 +164,6 @@ export class AccessComponent implements OnInit {
}
}
this.loading = false;
this.hideEmail = this.creatorIdentifier == null && !this.passwordRequired && !this.loading && !this.unavailable;
}
}