Merge pull request #3016 from mervekaraman/master

Loading animation added to button.
This commit is contained in:
Cüneyt Şentürk 2023-08-08 15:43:06 +03:00 committed by GitHub
commit 8d78bca15c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,7 +81,7 @@
@click="onActionBulkAction" @click="onActionBulkAction"
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" 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"
> >
<i v-if="bulk_action.loading" class="submit-spin absolute w-2 h-2 rounded-full left-0 right-0 -top-3.5 m-auto"></i> <i v-if="bulk_action.loading" class="animate-submit delay-[0.28s] absolute w-2 h-2 rounded-full left-0 right-0 -top-3.5 m-auto before:absolute before:w-2 before:h-2 before:rounded-full before:animate-submit before:delay-[0.14s] after:absolute after:w-2 after:h-2 after:rounded-full after:animate-submit before:-left-3.5 after:-right-3.5 after:delay-[0.42s]"></i>
<span :class="[{'opacity-0': bulk_action.loading}]">{{ trans('general.confirm') }}</span> <span :class="[{'opacity-0': bulk_action.loading}]">{{ trans('general.confirm') }}</span>
</button> </button>
</div> </div>