Skip to content

Commit

Permalink
feat(identity): add an ngIf that checks isStatic for delete button in…
Browse files Browse the repository at this point in the history
… roles.component

#2763
  • Loading branch information
mehmet-erim committed Feb 6, 2020
1 parent 3705594 commit 7e97483
Showing 1 changed file with 2 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ <h5 class="card-title">{{ 'AbpIdentity::Roles' | abpLocalization }}</h5>
{{ 'AbpIdentity::Permissions' | abpLocalization }}
</button>
<button
*abpPermission="'AbpIdentity.Roles.Delete'"
*ngIf="!data.isStatic"
[abpPermission]="'AbpIdentity.Roles.Delete'"
ngbDropdownItem
(click)="delete(data.id, data.name)"
>
Expand Down Expand Up @@ -172,22 +173,3 @@ <h3>{{ (selected?.id ? 'AbpIdentity::Edit' : 'AbpIdentity::NewRole') | abpLocali
(abpInit)="init(abpPermissionManagement)"
>
</abp-permission-management>

<!-- <abp-permission-management
#abpPermissionManagement="abpPermissionManagement"
*abpReplaceableTemplate="{
inputs: {
providerName: { value: 'R' },
providerKey: { value: providerKey },
visible: { value: visiblePermissions, twoWay: true },
hideBadges: { value: true }
},
outputs: { visibleChange: onVisiblePermissionChange },
componentKey: 'PermissionManagement.PermissionManagementComponent'
}"
[(visible)]="visiblePermissions"
[providerKey]="providerKey"
[hideBadges]="true"
providerName="R"
>
</abp-permission-management> -->

0 comments on commit 7e97483

Please sign in to comment.