[master]: Add members as managers in admin and rename managers to primary dashboard managers

This commit is contained in:
Konstantinos Triantafyllou 2024-04-08 14:15:10 +03:00
parent 3e90b38251
commit d490fa560e
6 changed files with 17 additions and 11 deletions

View File

@ -47,7 +47,7 @@ import {CacheIndicatorsModule} from "../openaireLibrary/monitor-admin/utils/cach
pathMatch: 'full'
},
{
path: 'users/manager',
path: 'users/:user_type',
loadChildren: () => import('./users/users.module').then(m => m.UsersModule),
pathMatch: 'full'
},

View File

@ -3,7 +3,11 @@
<loading></loading>
</div>
</div>
<role-users *ngIf="!loading && stakeholder" [id]="stakeholder.alias" [type]="type" [name]="stakeholder.name" [link]="link" [role]="tab" [message]="messages.get(tab)"
[emailComposer]="emailComposer">
<role-users *ngIf="!loading && stakeholder" [id]="stakeholder.alias" [type]="stakeholder.type" [name]="stakeholder.name" [link]="link" [role]="tab" [message]="messages.get(tab)"
[emailComposer]="emailComposer" [inviteAuthorizationLevel]="tab === 'manager'?'curator':'manager'">
<ul class="uk-tab uk-margin-remove-bottom uk-margin-medium-top">
<li [class.uk-active]="tab === 'manager'"><a routerLink="../manager" class="uk-text-capitalize">{{stakeholderUtils.roles.manager}}s</a></li>
<li [class.uk-active]="tab === 'member'"><a routerLink="../member" class="uk-text-capitalize">{{stakeholderUtils.roles.member}}s</a></li>
</ul>
</role-users>

View File

@ -59,10 +59,10 @@ export class UsersComponent extends StakeholderBaseComponent {
this.title = this.stakeholder.name + " | " + this.users;
this.setMetadata();
this.link = this.getURL(this.stakeholder.alias);
this.messages.set("member", 'A member has the right to view the <b>restricted access</b> areas of this indicator\'s profile. ' +
'A member has <b>no access</b> to the administration part of the profile.');
this.messages.set("manager", 'A manager has the right to access the administration part of this indicator\'s profile, ' +
'where he is able to invite other users as members and access the sandbox.');
this.messages.set("member", 'A ' + this.stakeholderUtils.roles.member + ' has the right to access the <b>sandbox</b> of this indicator\'s profile. ' +
'A ' + this.stakeholderUtils.roles.member + ' has <b>no access</b> to the administration part of the profile.');
this.messages.set("manager", 'A ' + this.stakeholderUtils.roles.manager + ' has the right to access the <b>administration part</b> of this indicator\'s profile, ' +
'where he is able to invite other users as ' + this.stakeholderUtils.roles.member + 's and access the <b>sandbox.</b>');
this.loading = false;
}
}));

View File

@ -2,7 +2,6 @@ import { NgModule } from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import {Irish} from "./shared/irish";
import {ErrorPageComponent} from "./openaireLibrary/error/errorPage.component";
import {AdminLoginGuard} from "./openaireLibrary/login/adminLoginGuard.guard";
import {HasConsentGuard} from "./shared/hasConsent.guard";
const routes: Routes = [

@ -1 +1 @@
Subproject commit e91830f2f8c1182c6e728f87a03af3a2932d816e
Subproject commit e6d03d324f698f0de61e7a67f96314c6922d95f7

View File

@ -15,6 +15,9 @@ export class Irish {
constructor() {
LinksResolver.setDefaultProperties('national/');
StakeholderConfiguration.ROLES.manager = 'primary dashboard manager';
StakeholderConfiguration.ROLES.member = 'manager';
StakeholderConfiguration.ENTITIES.stakeholder = 'Monitor';
StakeholderConfiguration.ENTITIES.stakeholders = 'Monitors';
StakeholderConfiguration.ENTITIES.funder = 'RFO';