Services
This commit is contained in:
@@ -29,7 +29,7 @@ export class PermissionsComponent implements OnInit {
|
||||
this.permissions = 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 'starts': return this.compare(a.starts, b.starts, isAsc);
|
||||
case 'expires': return this.compare(a.expires, b.expires, isAsc);
|
||||
default: return 0;
|
||||
|
||||
Reference in New Issue
Block a user