feat: #947 remove reset color button if no color set
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
Dominik Pschenitschni 2021-11-04 23:47:13 +01:00
parent e23f3c2570
commit 0ba6ae7e80
Signed by: dpschen
GPG Key ID: B257AC0149F43A77
1 changed files with 8 additions and 1 deletions

View File

@ -21,7 +21,14 @@
</svg>
</div>
<x-button :disabled="isEmpty" @click="reset" class="is-small ml-2" :shadow="false" type="secondary">
<x-button
v-if="!isEmpty"
:disabled="isEmpty"
@click="reset"
class="is-small ml-2"
:shadow="false"
type="secondary"
>
{{ $t('input.resetColor') }}
</x-button>
</div>