Skip to content
Snippets Groups Projects
Commit d98b8c79 authored by jojohoch's avatar jojohoch
Browse files

[editor] Hide badge for the number of state variables if there are none

parent 04b5d1ae
No related branches found
No related tags found
No related merge requests found
...@@ -8,6 +8,7 @@ import { UnitService } from 'editor/src/app/services/unit.service'; ...@@ -8,6 +8,7 @@ import { UnitService } from 'editor/src/app/services/unit.service';
class="show-state-variables-button" class="show-state-variables-button"
color="primary" color="primary"
matBadgeColor="accent" matBadgeColor="accent"
[matBadgeHidden]="!stateVariablesCount"
[matBadge]="stateVariablesCount" [matBadge]="stateVariablesCount"
(click)="showStateVariablesDialog()"> (click)="showStateVariablesDialog()">
<mat-icon>integration_instructions</mat-icon> <mat-icon>integration_instructions</mat-icon>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment