code refactoring

This commit is contained in:
Burak Civan
2022-06-14 11:06:16 +03:00
parent eff1c5e816
commit 7ac568ece1
12 changed files with 16 additions and 7 deletions

View File

@@ -41,6 +41,7 @@
</button>
<button :disabled="form.loading" type="button" class="relative flex items-center justify-center bg-green hover:bg-green-700 text-white px-6 py-1.5 text-base rounded-lg disabled:bg-green-100" @click="addTemplate">
<span>{{ trans('general.confirm') }}</span>
<x-button.loading v-if="form.loading" text="{{ trans('general.confirm') }}" text-hide="[{'opacity-0': form.loading}]" />
</button>
</div>