From 43ceb9f266bfb538c003e8dc760c6bbe0188cce3 Mon Sep 17 00:00:00 2001 From: argirok Date: Wed, 24 Jan 2024 12:14:40 +0200 Subject: [PATCH] [develop | DONE | CHANGED] claims: disable result link when status is pending --- .../claim-utils/displayClaims/displayClaims.component.html | 2 +- .../entityFormatter/claimEntityFormatter.component.ts | 3 ++- .../entityFormatter/publicationTitleFormatter.component.ts | 5 +++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/claims/claim-utils/displayClaims/displayClaims.component.html b/claims/claim-utils/displayClaims/displayClaims.component.html index 2c5dd4eb..bdcc74b3 100644 --- a/claims/claim-utils/displayClaims/displayClaims.component.html +++ b/claims/claim-utils/displayClaims/displayClaims.component.html @@ -63,7 +63,7 @@
+ [externalPortalUrl]=externalPortalUrl [source]="true" [linkAvailable]="isClaimAvailable(claim)">
Link to: + path="/search/result" [externalPortalUrl]=externalPortalUrl [linkAvailable]="linkAvailable">

{{entity.title?entity.title:"[No title available]"}} - {{entity.title?entity.title:"[No title available]"}} + [routerLink]="path" class="uk-link uk-link-heading" [class.uk-disabled]="!linkAvailable">{{entity.title?entity.title:"[No title available]"}} + {{entity.title?entity.title:"[No title available]"}}

@@ -23,5 +23,6 @@ export class PublicationTitleFormatter { @Input() path: string; @Input() entity: any; @Input() externalPortalUrl: string = null; + @Input() linkAvailable: boolean = true; public routerHelper: RouterHelper = new RouterHelper(); }