Skip to content
Snippets Groups Projects

Fix for closing emoji packs panels when switching between panels

Merged Angelina Filippova requested to merge fix/get-remote-packs into develop
4 files
+ 30
17
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -19,7 +19,6 @@ import Vue from 'vue'
const emojiPacks = {
state: {
activeTab: '',
currentLocalFilesPage: 1,
currentLocalPacksPage: 1,
currentRemoteFilesPage: 1,
@@ -35,9 +34,6 @@ const emojiPacks = {
remotePacksCount: 0
},
mutations: {
SET_ACTIVE_TAB: (state, tab) => {
state.activeTab = tab
},
SET_LOCAL_FILES_COUNT: (state, count) => {
state.localPackFilesCount = count
},
@@ -205,9 +201,6 @@ const emojiPacks = {
commit('UPDATE_LOCAL_PACK_PACK', { name: packName, pack: result.data })
}
},
SetActiveTab({ commit }, activeTab) {
commit('SET_ACTIVE_TAB', activeTab)
},
async SetRemoteEmojiPacks({ commit, getters, state }, { page, remoteInstance }) {
const { data } = await listRemotePacks(remoteInstance, page, state.pageSize, getters.authHost, getters.token)
const { packs, count } = data
Loading