From d98b8c79274751153208dcc47209e7feda534ed9 Mon Sep 17 00:00:00 2001 From: jojohoch <joachim.hoch@iqb.hu-berlin.de> Date: Mon, 3 Jul 2023 12:39:30 +0200 Subject: [PATCH] [editor] Hide badge for the number of state variables if there are none --- .../show-state-variables-button.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/editor/src/app/components/new-ui-element-panel/show-state-variables-button.component.ts b/projects/editor/src/app/components/new-ui-element-panel/show-state-variables-button.component.ts index bc50af5ec..b65639bae 100644 --- a/projects/editor/src/app/components/new-ui-element-panel/show-state-variables-button.component.ts +++ b/projects/editor/src/app/components/new-ui-element-panel/show-state-variables-button.component.ts @@ -8,6 +8,7 @@ import { UnitService } from 'editor/src/app/services/unit.service'; class="show-state-variables-button" color="primary" matBadgeColor="accent" + [matBadgeHidden]="!stateVariablesCount" [matBadge]="stateVariablesCount" (click)="showStateVariablesDialog()"> <mat-icon>integration_instructions</mat-icon> -- GitLab