mirror of https://github.com/Squidex/squidex.git
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.
41 lines
844 B
41 lines
844 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;
|
|
}
|
|
}
|