Check if emoji is already a local one

This commit is contained in:
Ekaterina Vaartis 2025-08-06 22:24:49 +03:00 committed by vaartis
commit e04d7d2c97
6 changed files with 26 additions and 3 deletions

View file

@ -3,7 +3,6 @@
ref="emojiPopover"
trigger="click"
placement="top"
bound-to-selector=".status-container"
:bound-to="{ x: 'container' }"
:offset="{ y: 10 }"
@show="fetchEmojiPacksIfAdmin"
@ -22,7 +21,7 @@
/>
</div>
<div v-if="isUserAdmin">
<div v-if="isUserAdmin && !isLocal">
<button
class="button button-default btn emoji-popover-button"
type="button"
@ -66,6 +65,16 @@
export default {
components: { StillImage, Popover, SelectComponent },
props: {
shortcode: {
type: String,
required: true
},
isLocal: {
type: Boolean,
required: true
}
},
data() {
return {
knownLocalPacks: { },