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 bc50af5ec4b7d8bfa517bebae62a1ae2b506ea49..b65639baeade610bcb6dfa94d59f142d2285d176 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>