|
|
|
@ -19,12 +19,12 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class=""> |
|
|
|
<div class="card-body"> |
|
|
|
<ngx-datatable |
|
|
|
[rows]="data$ | async" |
|
|
|
[loadingIndicator]="list.isLoading$ | async" |
|
|
|
[externalSorting]="true" |
|
|
|
(sort)="onSort($event)" |
|
|
|
(sort)="sort($event)" |
|
|
|
[externalPaging]="true" |
|
|
|
[count]="totalCount$ | async" |
|
|
|
[offset]="list.page - 1" |
|
|
|
@ -41,7 +41,7 @@ |
|
|
|
[maxWidth]="150" |
|
|
|
[sortable]="false" |
|
|
|
> |
|
|
|
<ng-template let-value="value" ngx-datatable-cell-template> |
|
|
|
<ng-template let-row="row" ngx-datatable-cell-template> |
|
|
|
<div ngbDropdown container="body" class="d-inline-block"> |
|
|
|
<button |
|
|
|
class="btn btn-primary btn-sm dropdown-toggle" |
|
|
|
@ -55,22 +55,22 @@ |
|
|
|
<button |
|
|
|
*abpPermission="'AbpIdentity.Roles.Update'" |
|
|
|
ngbDropdownItem |
|
|
|
(click)="edit(value.id)" |
|
|
|
(click)="edit(row.id)" |
|
|
|
> |
|
|
|
{{ 'AbpIdentity::Edit' | abpLocalization }} |
|
|
|
</button> |
|
|
|
<button |
|
|
|
*abpPermission="'AbpIdentity.Roles.ManagePermissions'" |
|
|
|
ngbDropdownItem |
|
|
|
(click)="openPermissionsModal(value.name)" |
|
|
|
(click)="openPermissionsModal(row.name)" |
|
|
|
> |
|
|
|
{{ 'AbpIdentity::Permissions' | abpLocalization }} |
|
|
|
</button> |
|
|
|
<button |
|
|
|
*ngIf="!value.isStatic" |
|
|
|
*ngIf="!row.isStatic" |
|
|
|
[abpPermission]="'AbpIdentity.Roles.Delete'" |
|
|
|
ngbDropdownItem |
|
|
|
(click)="delete(value.id, value.name)" |
|
|
|
(click)="delete(row.id, row.name)" |
|
|
|
> |
|
|
|
{{ 'AbpIdentity::Delete' | abpLocalization }} |
|
|
|
</button> |
|
|
|
|