diff --git a/src/views/emojiPacks/components/LocalEmojiPack.vue b/src/views/emojiPacks/components/LocalEmojiPack.vue index 3da48712..6991a548 100644 --- a/src/views/emojiPacks/components/LocalEmojiPack.vue +++ b/src/views/emojiPacks/components/LocalEmojiPack.vue @@ -188,6 +188,9 @@ export default { } }, methods: { + collapse() { + this.showPackContent = [] + }, deletePack() { this.$confirm('This will delete the pack, are you sure?', 'Warning', { confirmButtonText: 'Yes, delete the pack', diff --git a/src/views/emojiPacks/index.vue b/src/views/emojiPacks/index.vue index 1475ad4f..0dd0eedc 100644 --- a/src/views/emojiPacks/index.vue +++ b/src/views/emojiPacks/index.vue @@ -33,7 +33,7 @@ - + @@ -185,6 +185,7 @@ export default { }) }, setActiveTab(activeTab) { + this.$refs.localEmojiPack.forEach(el => el.collapse()) this.$store.dispatch('SetActiveTab', activeTab) } }