mirror of
https://github.com/bitwarden/browser.git
synced 2024-10-31 08:20:37 +01:00
Fix warning banner logic and open link in new tab (#909)
This commit is contained in:
parent
cd20b1c102
commit
b28eaa1aae
@ -6,9 +6,10 @@
|
||||
<div class="col-12 text-center" *ngIf="creatorIdentifier != null">
|
||||
<p>{{'sendCreatorIdentifier' | i18n: creatorIdentifier }}</p>
|
||||
</div>
|
||||
<div class="col-8" *ngIf="creatorIdentifier == null && !loading && !unavailable">
|
||||
<div class="col-8" *ngIf="hideEmail">
|
||||
<app-callout type="warning" title="{{'warning' | i18n}}">
|
||||
{{'viewSendHiddenEmailWarning' | i18n }} <a href="https://bitwarden.com/help/article/receive-send/">{{'learnMore' | i18n}}</a>.
|
||||
{{'viewSendHiddenEmailWarning' | i18n }}
|
||||
<a href="https://bitwarden.com/help/article/receive-send/" target="_blank">{{'learnMore' | i18n}}</a>.
|
||||
</app-callout>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user