This commit is contained in:
Lurkars
2021-03-12 09:19:02 +01:00
parent 50b412d21c
commit 5f4a789d01
3 changed files with 22 additions and 9 deletions
@@ -1,8 +1,12 @@
<table mat-table matSort [dataSource]="permissions" (matSortChange)="sortData($event)">
<ng-container matColumnDef="name">
<th mat-header-cell *matHeaderCellDef mat-sort-header="name"> {{'permissions.name' | i18n}} </th>
<td mat-cell *matCellDef="let permission"> {{'permissions.' + permission.name | i18n}}
<td mat-cell *matCellDef="let permission">
<mat-icon inline=true>{{'apps.' + permission.name + '.icon' | i18n}}</mat-icon>
{{'apps.' + permission.name + '.title' | i18n}}
<mat-icon *ngIf="permission.addon">add_circle</mat-icon>
<br>
<small>{{'apps.' + permission.name + '.subtitle' | i18n}}</small>
</td>
</ng-container>
+5 -2
View File
@@ -2,7 +2,10 @@
<ng-container matColumnDef="name">
<th mat-header-cell *matHeaderCellDef mat-sort-header="name"> {{'quotas.name' | i18n}} </th>
<td mat-cell *matCellDef="let quota"> {{'quotas.' + quota.name | i18n}} </td>
<td mat-cell *matCellDef="let quota">
<mat-icon inline=true>{{'apps.' + quota.name + '.icon' | i18n}}</mat-icon>
{{'apps.' + quota.name + '.title' | i18n}}
</td>
</ng-container>
<ng-container matColumnDef="quota">
@@ -12,7 +15,7 @@
<ng-container matColumnDef="quotaUnit">
<th mat-header-cell *matHeaderCellDef> {{'quotas.unit' | i18n}} </th>
<td mat-cell *matCellDef="let quota">
<td mat-cell *matCellDef="let quota">
<span *ngIf="quota.unit">{{'quotas.unit.' + quota.unit | i18n}}</span>
<span *ngIf="!quota.unit">#</span>
</td>