Skip to content

Commit

Permalink
[PM-1033] feat: add support for desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
coroiu committed Jun 19, 2023
1 parent 95dc293 commit d3edd71
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ <h1 id="heading">{{ "logInInitiated" | i18n }}</h1>
</div>

<ng-container *ngIf="!loading">
<h6 id="subHeading" class="standard-bottom-margin">{{ "deviceApprovalRequired" | i18n }}</h6>
<h6 *ngIf="approvalRequired" id="subHeading" class="standard-bottom-margin">
{{ "deviceApprovalRequired" | i18n }}
</h6>

<form id="rememberDeviceForm" class="standard-bottom-margin" [formGroup]="rememberDeviceForm">
<div class="checkbox">
Expand All @@ -25,7 +27,7 @@ <h6 id="subHeading" class="standard-bottom-margin">{{ "deviceApprovalRequired" |
<span id="rememberThisDeviceHintText">{{ "uncheckIfPublicDevice" | i18n }}</span>
</form>

<div class="buttons with-rows">
<div *ngIf="approvalRequired" class="buttons with-rows">
<div class="buttons-row" *ngIf="showApproveFromOtherDeviceBtn">
<button
(click)="approveFromOtherDevice()"
Expand Down Expand Up @@ -58,6 +60,14 @@ <h6 id="subHeading" class="standard-bottom-margin">{{ "deviceApprovalRequired" |
</div>
</div>

<div *ngIf="!approvalRequired" class="buttons with-rows">
<div class="buttons-row">
<button (click)="autoEnroll()" type="button" class="btn block">
{{ "continue" | i18n }}
</button>
</div>
</div>

<div style="text-align: center">
<p class="no-margin">{{ "loggingInAs" | i18n }} {{ userEmail }}</p>
<a [routerLink]="[]" (click)="logOut()">{{ "notYou" | i18n }}</a>
Expand Down
4 changes: 3 additions & 1 deletion apps/desktop/src/auth/sso.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ export class SsoComponent extends BaseSsoComponent {
cryptoFunctionService,
environmentService,
passwordGenerationService,
logService
logService,
// TODO: DO NOT MERGE LIKE THIS!
{ getFeatureFlagBool: async () => true } as any
);
super.onSuccessfulLogin = () => {
return syncService.fullSync(true);
Expand Down

0 comments on commit d3edd71

Please sign in to comment.