Browse Source

feat: add role labes to the name column of roles datatable

pull/5319/head
mehmet-erim 6 years ago
parent
commit
3100284024
  1. 15
      npm/ng-packs/packages/identity/src/lib/components/roles/roles.component.html

15
npm/ng-packs/packages/identity/src/lib/components/roles/roles.component.html

@ -63,10 +63,17 @@
</div> </div>
</ng-template> </ng-template>
</ngx-datatable-column> </ngx-datatable-column>
<ngx-datatable-column <ngx-datatable-column [name]="'AbpIdentity::RoleName' | abpLocalization" prop="name">
[name]="'AbpIdentity::RoleName' | abpLocalization" <ng-template let-row="row" ngx-datatable-cell-template>
prop="name" {{ row.name }}
></ngx-datatable-column> <span *ngIf="row.isDefault" class="badge badge-pill badge-success ml-1">{{
'AbpIdentity::DisplayName:IsDefault' | abpLocalization
}}</span>
<span *ngIf="row.isPublic" class="badge badge-pill badge-info ml-1">{{
'AbpIdentity::DisplayName:IsPublic' | abpLocalization
}}</span>
</ng-template>
</ngx-datatable-column>
</ngx-datatable> </ngx-datatable>
</div> </div>
</div> </div>

Loading…
Cancel
Save