29 lines
515 B
TypeScript
29 lines
515 B
TypeScript
|
import {Component, Input, OnInit} from "@angular/core";
|
||
|
|
||
|
@Component({
|
||
|
selector: 'dashboard-users',
|
||
|
templateUrl: 'dashboard-users.component.html'
|
||
|
})
|
||
|
export class DashboardUsersComponent implements OnInit{
|
||
|
|
||
|
@Input()
|
||
|
public id: string;
|
||
|
@Input()
|
||
|
public type: string;
|
||
|
@Input()
|
||
|
public name: string;
|
||
|
@Input()
|
||
|
public link: string;
|
||
|
public tab: "managers" | "members" = 'managers';
|
||
|
|
||
|
constructor() {
|
||
|
}
|
||
|
|
||
|
ngOnInit() {
|
||
|
}
|
||
|
|
||
|
changeTab(tab: "managers" | "members") {
|
||
|
this.tab = tab;
|
||
|
}
|
||
|
}
|