From d3a1e494e928d593f1d22df982456a04069e7325 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Kilchenmann?= Date: Wed, 23 Feb 2022 13:47:46 +0100 Subject: [PATCH] feat(ontology): adjust tooltip text when property is inherited (DEV-323) (#674) * feat(ontology): different tooltip if prop is inherited (DEV-323) * refactor(ontology): format code --- .../property-info.component.html | 8 +++++-- .../property-info/property-info.component.ts | 23 ++++++++++++------- 2 files changed, 21 insertions(+), 10 deletions(-) diff --git a/src/app/project/ontology/property-info/property-info.component.html b/src/app/project/ontology/property-info/property-info.component.html index a9eb30d873..26e9b516ca 100644 --- a/src/app/project/ontology/property-info/property-info.component.html +++ b/src/app/project/ontology/property-info/property-info.component.html @@ -56,7 +56,11 @@ tune + [matTooltip]="((!propCanBeDeleted) ? + (propCard.isInherited ? + 'The property can\'t be removed because it is inherited from another class' : + 'The property can\'t be removed because it is in use' + ) : 'Remove property from resource class')"> + [matTooltip]="((resClasses.length > 0) ? 'The property can\'t be deleted because it is used in a class' : 'Delete property')">