Headless CMS and Content Managment Hub
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

36 lines
832 B

/*
* Squidex Headless CMS
*
* @license
* Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved.
*/
import { Component, OnInit } from '@angular/core';
import { ClientDto, ClientsState, RolesState } from '@app/shared';
@Component({
selector: 'sqx-clients-page',
styleUrls: ['./clients-page.component.scss'],
templateUrl: './clients-page.component.html'
})
export class ClientsPageComponent implements OnInit {
constructor(
public readonly clientsState: ClientsState,
public readonly rolesState: RolesState
) {
}
public ngOnInit() {
this.rolesState.load();
this.clientsState.load();
}
public reload() {
this.clientsState.load(true);
}
public trackByClient(_index: number, client: ClientDto) {
return client.id;
}
}