Skip to content
Permalink
Browse files
fix(ontology): check if value exists without refreshing the page (DEV…
  • Loading branch information
kilchenmann committed May 31, 2022
1 parent 449493b commit 3c2409a4e5cf985d00b6be91ccc2d9ce728b2581
Showing 1 changed file with 4 additions and 2 deletions.
@@ -18,7 +18,7 @@
<span class="resource-class-header-action">
<span class="resource-class-more" *ngIf="projectStatus"
[matTooltip]="(ontology.lastModificationDate ? 'more' : 'This data model can\'t be edited because of missing lastModificationDate!')">
<button mat-icon-button [matMenuTriggerFor]="resClassMenu" class="res-class-menu" [disabled]="!ontology.lastModificationDate">
<button mat-icon-button [matMenuTriggerFor]="resClassMenu" class="res-class-menu" [disabled]="!ontology.lastModificationDate" (click)="canBeDeleted()">
<mat-icon>more_horiz</mat-icon>
</button>
</span>
@@ -82,7 +82,9 @@
</ng-template>
<!-- button to assign new property to class -->
<mat-list>
<mat-list-item *ngIf="lastModificationDate && projectStatus" class="property link" [matMenuTriggerFor]="addPropertyMenu">
<!-- here we have to know if the class has values or not;
this information is important to handle the cardinality (1 resp. 1-n); we get this information from the canReplaceCardinality method -->
<mat-list-item *ngIf="lastModificationDate && projectStatus" class="property link" [matMenuTriggerFor]="addPropertyMenu" (click)="canReplaceCardinality()">
<span mat-list-icon class="list-icon">
<mat-icon>add</mat-icon>
</span>

0 comments on commit 3c2409a

Please sign in to comment.