Services
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
<ng-container matColumnDef="name">
|
||||
<th mat-header-cell *matHeaderCellDef mat-sort-header="name"> {{'quotas.name' | i18n}} </th>
|
||||
<td mat-cell *matCellDef="let quota">
|
||||
<mat-icon inline=true>{{'apps.' + quota.name + '.icon' | i18n}}</mat-icon>
|
||||
{{'apps.' + quota.name + '.title' | i18n}}
|
||||
<mat-icon inline=true>{{'services.' + quota.name + '.icon' | i18n}}</mat-icon>
|
||||
{{'services.' + quota.name + '.title' | i18n}}
|
||||
</td>
|
||||
</ng-container>
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ export class QuotasComponent implements OnInit {
|
||||
this.quotas = data.sort((a, b) => {
|
||||
const isAsc = sort.direction === 'asc';
|
||||
switch(sort.active) {
|
||||
case 'name': return this.compare(this.i18n.get('apps.' + a.name + '.title', []), this.i18n.get('apps.' + b.name + '.title', []), isAsc);
|
||||
case 'name': return this.compare(this.i18n.get('services.' + a.name + '.title', []), this.i18n.get('services.' + b.name + '.title', []), isAsc);
|
||||
case 'value': return this.compare(a.value, b.value, isAsc);
|
||||
default: return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user