mirror of
https://github.com/bitwarden/browser.git
synced 2025-03-12 13:39:14 +01:00
Add back button.
This commit is contained in:
parent
90a24cba67
commit
ea685728ca
@ -130,6 +130,19 @@
|
|||||||
{{ "loginWithDevice" | i18n }}
|
{{ "loginWithDevice" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
||||||
|
<!-- Back button -->
|
||||||
|
<ng-container *ngIf="showBackButton()">
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
bitButton
|
||||||
|
block
|
||||||
|
buttonType="secondary"
|
||||||
|
(click)="toggleValidateEmail(false)"
|
||||||
|
>
|
||||||
|
{{ "back" | i18n }}
|
||||||
|
</button>
|
||||||
|
</ng-container>
|
||||||
</div>
|
</div>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</form>
|
</form>
|
||||||
|
@ -557,4 +557,12 @@ export class LoginComponent implements OnInit, OnDestroy {
|
|||||||
|
|
||||||
this.messagingService.send("getWindowIsFocused");
|
this.messagingService.send("getWindowIsFocused");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Helper function to determine if the back button should be shown.
|
||||||
|
* @returns true if the back button should be shown.
|
||||||
|
*/
|
||||||
|
protected showBackButton(): boolean {
|
||||||
|
return this.validatedEmail && this.clientType !== ClientType.Browser;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user