more fixes for emoji popover
This commit is contained in:
parent
937421fba8
commit
8ffc2e2906
1 changed files with 5 additions and 6 deletions
|
|
@ -45,12 +45,7 @@ export default {
|
|||
shortcode: this.shortcode,
|
||||
filename: '',
|
||||
})
|
||||
.then((resp) => resp.json())
|
||||
.then((resp) => {
|
||||
if (resp.error !== undefined) {
|
||||
this.displayError(resp.error)
|
||||
return
|
||||
}
|
||||
.then(({ data: resp }) => {
|
||||
useInterfaceStore().pushGlobalNotice({
|
||||
messageKey: 'admin_dash.emoji.copied_successfully',
|
||||
messageArgs: [this.shortcode, this.packName],
|
||||
|
|
@ -60,6 +55,10 @@ export default {
|
|||
this.$refs.emojiPopover.hidePopover()
|
||||
this.packName = ''
|
||||
})
|
||||
.catch((e) => {
|
||||
this.displayError(e)
|
||||
return
|
||||
})
|
||||
},
|
||||
|
||||
fetchEmojiPacksIfAdmin() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue