mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
[Callout] Removed redundant code (#1131)
* [Callout] ARemoved redundant code * Fixed formatting * Update jslib * Updated ul styling for policy options callout * Update jslib
This commit is contained in:
@@ -43,26 +43,6 @@ export class RegisterComponent extends BaseRegisterComponent {
|
||||
passwordGenerationService, environmentService);
|
||||
}
|
||||
|
||||
getPasswordScoreAlertDisplay() {
|
||||
if (this.enforcedPolicyOptions == null) {
|
||||
return '';
|
||||
}
|
||||
|
||||
let str: string;
|
||||
switch (this.enforcedPolicyOptions.minComplexity) {
|
||||
case 4:
|
||||
str = this.i18nService.t('strong');
|
||||
break;
|
||||
case 3:
|
||||
str = this.i18nService.t('good');
|
||||
break;
|
||||
default:
|
||||
str = this.i18nService.t('weak');
|
||||
break;
|
||||
}
|
||||
return str + ' (' + this.enforcedPolicyOptions.minComplexity + ')';
|
||||
}
|
||||
|
||||
async ngOnInit() {
|
||||
const queryParamsSub = this.route.queryParams.subscribe(qParams => {
|
||||
this.referenceData = new ReferenceEventRequest();
|
||||
|
||||
Reference in New Issue
Block a user