mirror of
https://github.com/bitwarden/web
synced 2026-01-06 10:33:17 +00:00
Fix linting errors (#749)
* Fix linting errors * Added back the form promise
This commit is contained in:
@@ -22,6 +22,7 @@ export class EmergencyAccessConfirmComponent implements OnInit {
|
||||
@Input() name: string;
|
||||
@Input() userId: string;
|
||||
@Input() emergencyAccessId: string;
|
||||
@Input() formPromise: Promise<any>;
|
||||
@Output() onConfirmed = new EventEmitter();
|
||||
|
||||
dontAskAgain = false;
|
||||
|
||||
@@ -130,7 +130,9 @@ export class EmergencyAccessComponent implements OnInit {
|
||||
childComponent.onConfirmed.subscribe(async () => {
|
||||
this.modal.close();
|
||||
|
||||
await this.doConfirmation(contact);
|
||||
childComponent.formPromise = this.doConfirmation(contact);
|
||||
await childComponent.formPromise;
|
||||
|
||||
updateUser();
|
||||
this.toasterService.popAsync('success', null, this.i18nService.t('hasBeenConfirmed', contact.name || contact.email));
|
||||
});
|
||||
|
||||
@@ -24,7 +24,7 @@ import { Organization } from 'jslib/models/domain/organization';
|
||||
})
|
||||
export class LinkSsoComponent extends SsoComponent implements AfterContentInit {
|
||||
@Input() organization: Organization;
|
||||
returnUri: string = '/settings/organizations'
|
||||
returnUri: string = '/settings/organizations';
|
||||
|
||||
constructor(platformUtilsService: PlatformUtilsService, i18nService: I18nService,
|
||||
apiService: ApiService, authService: AuthService,
|
||||
|
||||
Reference in New Issue
Block a user