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.
 
 
 
 
 

39 lines
860 B

/*
* Squidex Headless CMS
*
* @license
* Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved.
*/
// tslint:disable: component-selector
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
import { UserDto, UsersState } from '@app/features/administration/internal';
@Component({
selector: '[sqxUser]',
styleUrls: ['./user.component.scss'],
templateUrl: './user.component.html',
changeDetection: ChangeDetectionStrategy.OnPush
})
export class UserComponent {
@Input('sqxUser')
public user: UserDto;
constructor(
private readonly usersState: UsersState
) {
}
public lock() {
this.usersState.lock(this.user);
}
public unlock() {
this.usersState.unlock(this.user);
}
public delete() {
this.usersState.delete(this.user);
}
}