mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-23 11:56:00 +01:00
[Reset Password] Feature Flag (#943)
This commit is contained in:
parent
a1b77dc9ef
commit
66b7f4d344
@ -79,8 +79,8 @@
|
|||||||
<i class="fa fa-cog fa-lg" aria-hidden="true"></i>
|
<i class="fa fa-cog fa-lg" aria-hidden="true"></i>
|
||||||
</button>
|
</button>
|
||||||
<div class="dropdown-menu dropdown-menu-right">
|
<div class="dropdown-menu dropdown-menu-right">
|
||||||
<a *ngIf="!o.isResetPasswordEnrolled" class="dropdown-item" href="#" appStopClick
|
<a *ngIf="!o.isResetPasswordEnrolled && resetPasswordFeatureFlag" class="dropdown-item"
|
||||||
(click)="toggleResetPasswordEnrollment(o)">
|
href="#" appStopClick (click)="toggleResetPasswordEnrollment(o)">
|
||||||
<i class="fa fa-fw fa-key" aria-hidden="true"></i>
|
<i class="fa fa-fw fa-key" aria-hidden="true"></i>
|
||||||
{{'enrollPasswordReset' | i18n}}
|
{{'enrollPasswordReset' | i18n}}
|
||||||
</a>
|
</a>
|
||||||
|
@ -29,6 +29,8 @@ export class OrganizationsComponent implements OnInit {
|
|||||||
organizations: Organization[];
|
organizations: Organization[];
|
||||||
loaded: boolean = false;
|
loaded: boolean = false;
|
||||||
actionPromise: Promise<any>;
|
actionPromise: Promise<any>;
|
||||||
|
// TODO Remove feature flag once ready for general release
|
||||||
|
resetPasswordFeatureFlag = false;
|
||||||
|
|
||||||
constructor(private userService: UserService, private platformUtilsService: PlatformUtilsService,
|
constructor(private userService: UserService, private platformUtilsService: PlatformUtilsService,
|
||||||
private i18nService: I18nService, private apiService: ApiService,
|
private i18nService: I18nService, private apiService: ApiService,
|
||||||
@ -86,6 +88,11 @@ export class OrganizationsComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async toggleResetPasswordEnrollment(org: Organization) {
|
async toggleResetPasswordEnrollment(org: Organization) {
|
||||||
|
// Feature Flag
|
||||||
|
if (!this.resetPasswordFeatureFlag) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Set variables
|
// Set variables
|
||||||
let keyString: string = null;
|
let keyString: string = null;
|
||||||
let toastStringRef = 'withdrawPasswordResetSuccess';
|
let toastStringRef = 'withdrawPasswordResetSuccess';
|
||||||
|
Loading…
Reference in New Issue
Block a user