commit: 70258a21764fa72a34a6059e9902db1661a48382
parent d5a5b8e25430e44690c51e56ad7f862ce363e458
Author: Ekaterina Vaartis <vaartis@kotobank.ch>
Date: Sun, 28 Jan 2024 00:03:22 +0300
Address the save and delete button bugs
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/components/settings_modal/helpers/emoji_editing_popover.vue b/src/components/settings_modal/helpers/emoji_editing_popover.vue
@@ -51,7 +51,7 @@
<button
class="button button-default btn"
type="button"
- :disabled="uploadFile.length == 0"
+ :disabled="newUpload ? uploadFile.length == 0 : !isEdited"
@click="newUpload ? uploadEmoji() : saveEditedEmoji()">
{{ $t('admin_dash.emoji.save') }}
</button>
@@ -157,7 +157,7 @@ export default {
this.deleteModalVisible = false
this.$store.state.api.backendInteractor.deleteEmojiFile(
- { packName: this.packName, shortcode: this.editedShortcode }
+ { packName: this.packName, shortcode: this.shortcode }
).then(resp => resp.json()).then(resp => {
if (resp.error !== undefined) {
this.$emit('displayError', resp.error)