fix: fix providerKey required error

pull/2986/head
mehmet-erim 5 years ago
parent 3aeb63d698
commit 2234350a1d

@ -76,7 +76,7 @@
<button
*abpPermission="'AbpIdentity.Roles.ManagePermissions'"
ngbDropdownItem
(click)="providerKey = data.name; visiblePermissions = true"
(click)="openPermissionsModal(data.name)"
>
{{ 'AbpIdentity::Permissions' | abpLocalization }}
</button>

@ -142,4 +142,11 @@ export class RolesComponent implements OnInit {
new Event('submit', { bubbles: true, cancelable: true }),
);
}
openPermissionsModal(providerKey: string) {
this.providerKey = providerKey;
setTimeout(() => {
this.visiblePermissions = true;
}, 0);
}
}

@ -102,7 +102,7 @@
<button
*abpPermission="'AbpIdentity.Users.ManagePermissions'"
ngbDropdownItem
(click)="providerKey = data.id; visiblePermissions = true"
(click)="openPermissionsModal(data.id)"
>
{{ 'AbpIdentity::Permissions' | abpLocalization }}
</button>

@ -243,4 +243,11 @@ export class UsersComponent implements OnInit {
.pipe(finalize(() => (this.loading = false)))
.subscribe();
}
openPermissionsModal(providerKey: string) {
this.providerKey = providerKey;
setTimeout(() => {
this.visiblePermissions = true;
}, 0);
}
}

@ -93,7 +93,7 @@
<button
*abpPermission="'AbpTenantManagement.Tenants.ManageFeatures'"
ngbDropdownItem
(click)="providerKey = data.id; visibleFeatures = true"
(click)="openFeaturesModal(data.id)"
>
{{ 'AbpTenantManagement::Permission:ManageFeatures' | abpLocalization }}
</button>

@ -272,4 +272,11 @@ export class TenantsComponent implements OnInit {
}, 0);
}
}
openFeaturesModal(providerKey: string) {
this.providerKey = providerKey;
setTimeout(() => {
this.visibleFeatures = true;
}, 0);
}
}

Loading…
Cancel
Save