Formatting fixes

This commit is contained in:
Ekaterina Vaartis 2025-08-07 10:43:46 +03:00 committed by vaartis
commit 24c0e0e497
2 changed files with 9 additions and 10 deletions

View file

@ -195,18 +195,18 @@ export default {
data () {
return {
uploadFile: [],
uploadURL: "",
uploadURL: '',
editedShortcode: this.shortcode,
editedFile: this.file,
deleteModalVisible: false,
copyToPack: ""
copyToPack: ''
}
},
computed: {
emojiPreview () {
if (this.newUpload && this.uploadFile.length > 0) {
return URL.createObjectURL(this.uploadFile[0])
} else if (this.newUpload && this.uploadURL != "") {
} else if (this.newUpload && this.uploadURL !== '') {
return this.uploadURL
} else if (!this.newUpload) {
return this.emojiAddr(this.file)
@ -243,8 +243,9 @@ export default {
let packName = this.remote === undefined ? this.packName : this.copyToPack
this.$store.state.api.backendInteractor.addNewEmojiFile({
packName: packName,
file: this.remote === undefined ?
(this.uploadURL !== "" ? this.uploadURL : this.uploadFile[0]) : this.emojiAddr(this.file),
file: this.remote === undefined
? (this.uploadURL !== "" ? this.uploadURL : this.uploadFile[0])
: this.emojiAddr(this.file),
shortcode: this.editedShortcode,
filename: this.editedFile
}).then(resp => resp.json()).then(resp => {

View file

@ -58,7 +58,7 @@
<script>
import { assign } from 'lodash'
import StillImage from "./still-image.vue"
import StillImage from './still-image.vue'
import Popover from 'components/popover/popover.vue'
import SelectComponent from 'components/select/select.vue'
import { useInterfaceStore } from 'src/stores/interface'
@ -95,8 +95,6 @@
})
},
copyToLocalPack() {
console.log(this.packName)
this.$store.state.api.backendInteractor.addNewEmojiFile({
packName: this.packName,
file: this.$attrs.src,
@ -171,8 +169,8 @@
text-align: center;
.emoji {
width: 64px;
height: 64px;
width: 4.6em;
height: 4.6em;
}
.emoji-popover-centered {