bugfix btn show no img if none was passed
This commit is contained in:
parent
9b5bbd3988
commit
690e991309
2 changed files with 4 additions and 2 deletions
|
|
@ -37,8 +37,8 @@
|
|||
},
|
||||
{
|
||||
"type": "anyComponentStyle",
|
||||
"maximumWarning": "2kb",
|
||||
"maximumError": "4kb"
|
||||
"maximumWarning": "8kb",
|
||||
"maximumError": "16kb"
|
||||
}
|
||||
],
|
||||
"outputHashing": "all"
|
||||
|
|
|
|||
|
|
@ -4,10 +4,12 @@
|
|||
[disabled]="disabled"
|
||||
[ngClass]="{ reverse: imgReverse }"
|
||||
>
|
||||
@if(imgPath) {
|
||||
<img
|
||||
src="./../../../../assets/img/{{ imgPath }}.svg"
|
||||
alt="{{ imgPath }}"
|
||||
class="icon"
|
||||
/>
|
||||
}
|
||||
<p>{{ value }}</p>
|
||||
</button>
|
||||
|
|
|
|||
Loading…
Reference in a new issue