fixed various Permissions UI issues (#775)
This commit is contained in:
parent
023bf0474c
commit
03aa806af6
|
@ -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"
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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'),
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue