Button loading re-factoring..

This commit is contained in:
Cüneyt Şentürk
2022-06-16 18:32:41 +03:00
parent 68e0b539d5
commit 9b0cb3da35
12 changed files with 71 additions and 39 deletions

View File

@ -21,8 +21,9 @@
@click="onModuleLoadMore('releases')"
class="w-48 bg-green m-auto block whitespace-nowrap px-4 py-2 border border-transparent rounded-md shadow-sm text-base font-medium text-white text-center js-learn-more js-button-modal-submit hover:bg-green-700 disabled:bg-green-300"
>
<span>{{ trans('modules.see_more') }}</span>
<x-button.loading v-if="loadMoreLoading" text="{{ trans('modules.see_more') }}" text-hide="[{'opacity-0': loadMoreLoading}]" />
<x-button.loading action="loadMoreLoading">
{{ trans('modules.see_more') }}
</x-button.loading>
</button>
</div>