-
-
- {{ $t('status.pinned') }}
-
+
+
+ {{ $t('status.pinned') }}
+
resp.json())
+ .then((resp) => {
+ if (resp.error !== undefined) {
+ this.displayError(resp.error)
+ return
+ }
+ useInterfaceStore().pushGlobalNotice({
+ messageKey: 'admin_dash.emoji.copied_successfully',
+ messageArgs: [this.shortcode, this.packName],
+ level: 'success',
+ })
+
+ this.$refs.emojiPopover.hidePopover()
+ this.packName = ''
+ })
+ },
+
+ fetchEmojiPacksIfAdmin() {
+ useEmojiStore().getAdminPacksLocal().then(() => {
+ this.$refs.emojiPopover.updateStyles()
+ })
+ },
+ },
+}
diff --git a/src/components/still-image/still-image-emoji-popover.vue b/src/components/still-image/still-image-emoji-popover.vue
index 4e087c094..f80f111f7 100644
--- a/src/components/still-image/still-image-emoji-popover.vue
+++ b/src/components/still-image/still-image-emoji-popover.vue
@@ -21,169 +21,53 @@
/>
-
-
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
+