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.
48 lines
1.1 KiB
48 lines
1.1 KiB
/*
|
|
* Squidex Headless CMS
|
|
*
|
|
* @license
|
|
* Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved.
|
|
*/
|
|
|
|
import { Component, OnInit } from '@angular/core';
|
|
|
|
import {
|
|
ContributorDto,
|
|
ContributorsState,
|
|
DialogModel,
|
|
RolesState
|
|
} from '@app/shared';
|
|
|
|
@Component({
|
|
selector: 'sqx-contributors-page',
|
|
styleUrls: ['./contributors-page.component.scss'],
|
|
templateUrl: './contributors-page.component.html'
|
|
})
|
|
export class ContributorsPageComponent implements OnInit {
|
|
public importDialog = new DialogModel();
|
|
|
|
constructor(
|
|
public readonly contributorsState: ContributorsState,
|
|
public readonly rolesState: RolesState
|
|
) {
|
|
}
|
|
|
|
public ngOnInit() {
|
|
this.rolesState.load();
|
|
|
|
this.contributorsState.load();
|
|
}
|
|
|
|
public reload() {
|
|
this.contributorsState.load(true);
|
|
}
|
|
|
|
public search(query: string) {
|
|
this.contributorsState.search(query);
|
|
}
|
|
|
|
public trackByContributor(index: number, contributor: ContributorDto) {
|
|
return contributor.contributorId;
|
|
}
|
|
}
|
|
|