mirror of
https://github.com/bitwarden/browser.git
synced 2025-03-10 13:09:37 +01:00
[PM-2908] feat: show account created toast (#5810)
This commit is contained in:
parent
8d0def68c8
commit
e513c7ee2d
@ -2249,7 +2249,7 @@
|
||||
"message": "Request admin approval"
|
||||
},
|
||||
"approveWithMasterPassword": {
|
||||
"message": "Approve with master password"
|
||||
"message": "Approve with master password"
|
||||
},
|
||||
"eu": {
|
||||
"message": "EU",
|
||||
@ -2267,5 +2267,8 @@
|
||||
},
|
||||
"display": {
|
||||
"message": "Display"
|
||||
},
|
||||
"accountSuccessfullyCreated": {
|
||||
"message": "Account successfully created!"
|
||||
}
|
||||
}
|
||||
|
@ -13,6 +13,7 @@ import { TokenService } from "@bitwarden/common/auth/abstractions/token.service"
|
||||
import { CryptoService } from "@bitwarden/common/platform/abstractions/crypto.service";
|
||||
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
|
||||
import { MessagingService } from "@bitwarden/common/platform/abstractions/messaging.service";
|
||||
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
||||
import { StateService } from "@bitwarden/common/platform/abstractions/state.service";
|
||||
import { ValidationService } from "@bitwarden/common/platform/abstractions/validation.service";
|
||||
|
||||
@ -36,7 +37,8 @@ export class LoginDecryptionOptionsComponent extends BaseLoginDecryptionOptionsC
|
||||
protected apiService: ApiService,
|
||||
protected i18nService: I18nService,
|
||||
protected validationService: ValidationService,
|
||||
protected deviceTrustCryptoService: DeviceTrustCryptoServiceAbstraction
|
||||
protected deviceTrustCryptoService: DeviceTrustCryptoServiceAbstraction,
|
||||
protected platformUtilsService: PlatformUtilsService
|
||||
) {
|
||||
super(
|
||||
formBuilder,
|
||||
@ -53,7 +55,8 @@ export class LoginDecryptionOptionsComponent extends BaseLoginDecryptionOptionsC
|
||||
apiService,
|
||||
i18nService,
|
||||
validationService,
|
||||
deviceTrustCryptoService
|
||||
deviceTrustCryptoService,
|
||||
platformUtilsService
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -13,6 +13,7 @@ import { TokenService } from "@bitwarden/common/auth/abstractions/token.service"
|
||||
import { CryptoService } from "@bitwarden/common/platform/abstractions/crypto.service";
|
||||
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
|
||||
import { MessagingService } from "@bitwarden/common/platform/abstractions/messaging.service";
|
||||
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
||||
import { StateService } from "@bitwarden/common/platform/abstractions/state.service";
|
||||
import { ValidationService } from "@bitwarden/common/platform/abstractions/validation.service";
|
||||
|
||||
@ -36,7 +37,8 @@ export class LoginDecryptionOptionsComponent extends BaseLoginDecryptionOptionsC
|
||||
protected apiService: ApiService,
|
||||
protected i18nService: I18nService,
|
||||
protected validationService: ValidationService,
|
||||
protected deviceTrustCryptoService: DeviceTrustCryptoServiceAbstraction
|
||||
protected deviceTrustCryptoService: DeviceTrustCryptoServiceAbstraction,
|
||||
protected platformUtilsService: PlatformUtilsService
|
||||
) {
|
||||
super(
|
||||
formBuilder,
|
||||
@ -53,7 +55,8 @@ export class LoginDecryptionOptionsComponent extends BaseLoginDecryptionOptionsC
|
||||
apiService,
|
||||
i18nService,
|
||||
validationService,
|
||||
deviceTrustCryptoService
|
||||
deviceTrustCryptoService,
|
||||
platformUtilsService
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -2268,7 +2268,7 @@
|
||||
"message": "Request admin approval"
|
||||
},
|
||||
"approveWithMasterPassword": {
|
||||
"message": "Approve with master password"
|
||||
"message": "Approve with master password"
|
||||
},
|
||||
"region": {
|
||||
"message": "Region"
|
||||
@ -2286,6 +2286,8 @@
|
||||
},
|
||||
"accessDenied": {
|
||||
"message": "Access denied. You do not have permission to view this page."
|
||||
},
|
||||
"accountSuccessfullyCreated": {
|
||||
"message": "Account successfully created!"
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -13,6 +13,7 @@ import { TokenService } from "@bitwarden/common/auth/abstractions/token.service"
|
||||
import { CryptoService } from "@bitwarden/common/platform/abstractions/crypto.service";
|
||||
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
|
||||
import { MessagingService } from "@bitwarden/common/platform/abstractions/messaging.service";
|
||||
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
||||
import { StateService } from "@bitwarden/common/platform/abstractions/state.service";
|
||||
import { ValidationService } from "@bitwarden/common/platform/abstractions/validation.service";
|
||||
@Component({
|
||||
@ -35,7 +36,8 @@ export class LoginDecryptionOptionsComponent extends BaseLoginDecryptionOptionsC
|
||||
protected apiService: ApiService,
|
||||
protected i18nService: I18nService,
|
||||
protected validationService: ValidationService,
|
||||
protected deviceTrustCryptoService: DeviceTrustCryptoServiceAbstraction
|
||||
protected deviceTrustCryptoService: DeviceTrustCryptoServiceAbstraction,
|
||||
protected platformUtilsService: PlatformUtilsService
|
||||
) {
|
||||
super(
|
||||
formBuilder,
|
||||
@ -52,7 +54,8 @@ export class LoginDecryptionOptionsComponent extends BaseLoginDecryptionOptionsC
|
||||
apiService,
|
||||
i18nService,
|
||||
validationService,
|
||||
deviceTrustCryptoService
|
||||
deviceTrustCryptoService,
|
||||
platformUtilsService
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -6993,5 +6993,8 @@
|
||||
},
|
||||
"selectedRegionFlag": {
|
||||
"message": "Selected region flag"
|
||||
},
|
||||
"accountSuccessfullyCreated": {
|
||||
"message": "Account successfully created!"
|
||||
}
|
||||
}
|
||||
|
@ -25,6 +25,7 @@ import { KeysRequest } from "@bitwarden/common/models/request/keys.request";
|
||||
import { CryptoService } from "@bitwarden/common/platform/abstractions/crypto.service";
|
||||
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
|
||||
import { MessagingService } from "@bitwarden/common/platform/abstractions/messaging.service";
|
||||
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
||||
import { StateService } from "@bitwarden/common/platform/abstractions/state.service";
|
||||
import { ValidationService } from "@bitwarden/common/platform/abstractions/validation.service";
|
||||
import { Utils } from "@bitwarden/common/platform/misc/utils";
|
||||
@ -86,7 +87,8 @@ export class BaseLoginDecryptionOptionsComponent implements OnInit, OnDestroy {
|
||||
protected apiService: ApiService,
|
||||
protected i18nService: I18nService,
|
||||
protected validationService: ValidationService,
|
||||
protected deviceTrustCryptoService: DeviceTrustCryptoServiceAbstraction
|
||||
protected deviceTrustCryptoService: DeviceTrustCryptoServiceAbstraction,
|
||||
protected platformUtilsService: PlatformUtilsService
|
||||
) {}
|
||||
|
||||
async ngOnInit() {
|
||||
@ -106,6 +108,11 @@ export class BaseLoginDecryptionOptionsComponent implements OnInit, OnDestroy {
|
||||
// We are dealing with a new account if:
|
||||
// - User does not have admin approval (i.e. has not enrolled into admin reset)
|
||||
// - AND does not have a master password
|
||||
this.platformUtilsService.showToast(
|
||||
"success",
|
||||
null,
|
||||
this.i18nService.t("accountSuccessfullyCreated")
|
||||
);
|
||||
this.loadNewUserData();
|
||||
} else {
|
||||
this.loadUntrustedDeviceData(accountDecryptionOptions);
|
||||
|
Loading…
Reference in New Issue
Block a user