[Monitor Dashboard | Trunk]: Remove dashboard users component

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-monitor-portal/trunk/monitor_dashboard@60249 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
Konstantinos Triantafyllou 2021-01-15 10:19:39 +00:00
parent a1968a2899
commit e204d71542
3 changed files with 16 additions and 2 deletions

View File

@ -3,5 +3,13 @@
<loading></loading>
</div>
</div>
<dashboard-users *ngIf="!loading && alias" [id]="alias" [name]="name" [type]="type" [link]="link" [messages]="messages"></dashboard-users>
<ng-template #tabs>
<ul class="uk-tab customTabs admin uk-flex uk-flex-center uk-flex-left@m" uk-tab>
<li [class.uk-active]="tab === 'manager'"><a (click)="changeTab('manager')"><span class="title">Managers</span></a></li>
<li [class.uk-active]="tab === 'member'"><a (click)="changeTab('member')"><span class="title">Members</span></a></li>
</ul>
</ng-template>
<role-users *ngIf="!loading && alias" [id]="alias" [type]="type" [name]="name" [link]="link" [role]="tab" [message]="messages.get(tab)">
<ng-container [ngTemplateOutlet]="tabs"></ng-container>
</role-users>

View File

@ -16,6 +16,7 @@ export class UsersComponent implements OnInit{
public link: string;
public loading: boolean;
public messages: Map<"member" | "manager", string> = new Map<"member"|"manager", string>();
public tab: "manager" | "member" = 'manager';
private subscription;
constructor(private stakeholderService: StakeholderService,
@ -46,6 +47,10 @@ export class UsersComponent implements OnInit{
}
}
changeTab(tab: "manager" | "member") {
this.tab = tab;
}
private getURL(id: string): string {
return properties.domain + properties.baseLink + "/" + id + "?verify=";
}

View File

@ -6,9 +6,10 @@ import {AdminDashboardGuard} from "../utils/adminDashboard.guard";
import {DashboardUsersModule} from "../openaireLibrary/dashboard/users/dashboard-users.module";
import {LoadingModule} from "../openaireLibrary/utils/loading/loading.module";
import {PageContentModule} from "../openaireLibrary/dashboard/sharedComponents/page-content/page-content.module";
import {RoleUsersModule} from "../openaireLibrary/dashboard/users/role-users/role-users.module";
@NgModule({
imports: [CommonModule, UsersRoutingModule, DashboardUsersModule, LoadingModule, PageContentModule],
imports: [CommonModule, UsersRoutingModule, DashboardUsersModule, LoadingModule, PageContentModule, RoleUsersModule],
declarations: [UsersComponent],
exports: [UsersComponent],
providers: [AdminDashboardGuard]