From ca9e84ad4b65bf23277b5ea36c8160a303a54c19 Mon Sep 17 00:00:00 2001 From: Angelina Filippova Date: Sat, 28 Mar 2020 01:52:53 +0300 Subject: [PATCH] Add loading when fetching remote packs --- src/views/emojiPacks/index.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/views/emojiPacks/index.vue b/src/views/emojiPacks/index.vue index 70c832ed..28f964d8 100644 --- a/src/views/emojiPacks/index.vue +++ b/src/views/emojiPacks/index.vue @@ -37,6 +37,7 @@ v-model="remoteInstanceAddress" :placeholder="$t('emoji.remoteInstanceAddress')" /> @@ -65,7 +66,8 @@ export default { remoteInstanceAddress: '', newPackName: '', activeLocalPack: [], - activeRemotePack: [] + activeRemotePack: [], + fullscreenLoading: false } }, computed: { @@ -122,8 +124,10 @@ export default { message: i18n.t('emoji.refreshed') }) }, - refreshRemotePacks() { - this.$store.dispatch('SetRemoteEmojiPacks', { remoteInstance: this.remoteInstanceAddress }) + async refreshRemotePacks() { + this.fullscreenLoading = true + await this.$store.dispatch('SetRemoteEmojiPacks', { remoteInstance: this.remoteInstanceAddress }) + this.fullscreenLoading = false }, async reloadEmoji() { try {