fixed various Permissions UI issues (#775)

This commit is contained in:
Addison Beck 2021-01-14 18:08:26 -05:00 committed by GitHub
parent 023bf0474c
commit 03aa806af6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 3 deletions

View File

@ -86,6 +86,7 @@
<span *ngIf="u.type === organizationUserType.Admin">{{'admin' | i18n}}</span> <span *ngIf="u.type === organizationUserType.Admin">{{'admin' | i18n}}</span>
<span *ngIf="u.type === organizationUserType.Manager">{{'manager' | i18n}}</span> <span *ngIf="u.type === organizationUserType.Manager">{{'manager' | i18n}}</span>
<span *ngIf="u.type === organizationUserType.User">{{'user' | i18n}}</span> <span *ngIf="u.type === organizationUserType.User">{{'user' | i18n}}</span>
<span *ngIf="u.type === organizationUserType.Custom">{{'custom' | i18n}}</span>
</td> </td>
<td class="text-center" *ngIf="entity === 'collection'"> <td class="text-center" *ngIf="entity === 'collection'">
<input type="checkbox" [(ngModel)]="u.hidePasswords" <input type="checkbox" [(ngModel)]="u.hidePasswords"

View File

@ -1,4 +1,4 @@
<app-callout [type]="'warning'"> <app-callout *ngIf="userCanAccessBusinessPortal" [type]="'warning'">
<p>{{'webPoliciesDeprecationWarning' | i18n}}</p> <p>{{'webPoliciesDeprecationWarning' | i18n}}</p>
<button type="button" class="btn btn-outline-secondary" <button type="button" class="btn btn-outline-secondary"
(click)="goToEnterprisePortal()">{{'businessPortal' | i18n}}</button> (click)="goToEnterprisePortal()">{{'businessPortal' | i18n}}</button>

View File

@ -37,13 +37,14 @@ export class PoliciesComponent implements OnInit {
// Remove when removing deprecation warning // Remove when removing deprecation warning
enterpriseTokenPromise: Promise<any>; enterpriseTokenPromise: Promise<any>;
userCanAccessBusinessPortal = false;
private enterpriseUrl: string; private enterpriseUrl: string;
private modal: ModalComponent = null; private modal: ModalComponent = null;
private orgPolicies: PolicyResponse[]; private orgPolicies: PolicyResponse[];
private policiesEnabledMap: Map<PolicyType, boolean> = new Map<PolicyType, boolean>(); private policiesEnabledMap: Map<PolicyType, boolean> = new Map<PolicyType, boolean>();
constructor(private apiService: ApiService, private route: ActivatedRoute, constructor(private apiService: ApiService, private route: ActivatedRoute,
private i18nService: I18nService, private componentFactoryResolver: ComponentFactoryResolver, private i18nService: I18nService, private componentFactoryResolver: ComponentFactoryResolver,
private platformUtilsService: PlatformUtilsService, private userService: UserService, private platformUtilsService: PlatformUtilsService, private userService: UserService,
@ -57,6 +58,7 @@ export class PoliciesComponent implements OnInit {
this.router.navigate(['/organizations', this.organizationId]); this.router.navigate(['/organizations', this.organizationId]);
return; return;
} }
this.userCanAccessBusinessPortal = organization.canAccessBusinessPortal;
this.policies = [ this.policies = [
{ {
name: this.i18nService.t('twoStepLogin'), name: this.i18nService.t('twoStepLogin'),

View File

@ -3611,7 +3611,7 @@
"message": "Manage Policies" "message": "Manage Policies"
}, },
"manageSso": { "manageSso": {
"message": "Manage Sso" "message": "Manage SSO"
}, },
"manageUsers": { "manageUsers": {
"message": "Manage Users" "message": "Manage Users"