feat: #947 remove reset color button if no color set #957

Merged
konrad merged 1 commits from dpschen/frontend:feature/fix-947-no-reset-color-if-no-color-set into main 2021-11-09 19:09:53 +00:00

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>