Skip to content
Snippets Groups Projects
Commit ca9e84ad authored by Angelina Filippova's avatar Angelina Filippova
Browse files

Add loading when fetching remote packs

parent 759dab47
Branches
Tags
2 merge requests!125WIP: Release/2.0.3,!110Fix fetching remote emoji packs
......@@ -37,6 +37,7 @@
v-model="remoteInstanceAddress"
:placeholder="$t('emoji.remoteInstanceAddress')" />
<el-button
v-loading.fullscreen.lock="fullscreenLoading"
:disabled="remoteInstanceAddress.trim() === ''"
class="create-pack-button"
@click="refreshRemotePacks">
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment