[umbrella]: Αdd disable in card in browse stakeholders. Remove open access from browse data link.

This commit is contained in:
Konstantinos Triantafyllou 2024-06-02 21:17:59 +03:00
parent 93ea197525
commit 47825db243
3 changed files with 4 additions and 3 deletions

View File

@ -357,7 +357,7 @@ export class AppComponent extends SidebarBaseComponent implements OnInit {
);
this.menuItems.push(
new MenuItem("search", "Browse Data", "", '/' + stakeholder.alias + '/' + LinksResolver.default.searchLinkToResults,
false, [], null, {resultbestaccessright: '"' + encodeURIComponent("Open Access") + '"'},
false, [], null, null,
null, null, null, null)
);
this.resourcesService.setResources(this.menuItems, '', this.monitorLink, '_blank');

View File

@ -58,8 +58,8 @@
<div class="uk-grid" class="uk-child-width-1-4@l uk-child-width-1-3@m uk-child-width-1-1"
uk-grid uk-height-match="target: .top-info;">
<div *ngFor="let item of filteredStakeholders.slice((currentPage-1)*pageSize, currentPage*pageSize)">
<a routerLink="./{{item.alias}}" class="uk-link-reset" [class.uk-disabled]="!hasPermission(item)">
<div class="uk-card uk-card-default uk-card-hover">
<a [routerLink]="'./' + item.alias" class="uk-link-reset" [class.uk-disabled]="!hasPermission(item)">
<div class="uk-card uk-card-default uk-card-hover" [class.uk-disabled]="!hasPermission(item)">
<div *ngIf="item.visibility && item.visibility !== 'PUBLIC'"
[ngClass]="isMobile?'uk-flex uk-flex-middle uk-flex-right uk-margin-small-right uk-margin-small-top':'uk-position-top-right uk-margin-small-top uk-margin-small-right uk-flex uk-flex-column uk-flex-middle'">
<icon [name]="visibilityIcon.get(item.visibility)" [ratio]="isMobile?0.8:1" [flex]="true"></icon>

View File

@ -18,6 +18,7 @@ import {Title} from "@angular/platform-browser";
export class BrowseStakeholdersComponent extends BrowseStakeholderBaseComponent<StakeholderInfo> {
user: User;
stakeholderUtils: StakeholderUtils = new StakeholderUtils();
sortBy = 'alphAsc';
visibilityIcon: Map<Visibility, string> = new Map<Visibility, string> ([
["PRIVATE", 'incognito'],
["RESTRICTED", 'restricted']