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",
|
"type": "anyComponentStyle",
|
||||||
"maximumWarning": "2kb",
|
"maximumWarning": "8kb",
|
||||||
"maximumError": "4kb"
|
"maximumError": "16kb"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"outputHashing": "all"
|
"outputHashing": "all"
|
||||||
|
|
|
||||||
|
|
@ -4,10 +4,12 @@
|
||||||
[disabled]="disabled"
|
[disabled]="disabled"
|
||||||
[ngClass]="{ reverse: imgReverse }"
|
[ngClass]="{ reverse: imgReverse }"
|
||||||
>
|
>
|
||||||
|
@if(imgPath) {
|
||||||
<img
|
<img
|
||||||
src="./../../../../assets/img/{{ imgPath }}.svg"
|
src="./../../../../assets/img/{{ imgPath }}.svg"
|
||||||
alt="{{ imgPath }}"
|
alt="{{ imgPath }}"
|
||||||
class="icon"
|
class="icon"
|
||||||
/>
|
/>
|
||||||
|
}
|
||||||
<p>{{ value }}</p>
|
<p>{{ value }}</p>
|
||||||
</button>
|
</button>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue