This commit is contained in:
Čarodej
2022-03-20 19:00:46 +01:00
parent 73ef6e6c1f
commit 42245317f4
10 changed files with 44 additions and 24 deletions

View File

@@ -9,7 +9,7 @@
spellcheck="false"
>
<!--MultiSelecting for the mobile version-->
<CheckBox v-if="isMultiSelectMode" v-model="isClicked" :is-clicked="isClicked" class="mr-5" />
<CheckBox v-if="isMultiSelectMode" v-model="isChecked" :is-clicked="isClicked" class="mr-5" />
<!--Item thumbnail-->
<div class="relative w-16 shrink-0">
@@ -125,11 +125,21 @@ export default {
Emoji,
},
props: ['mobileHandler', 'highlight', 'entry'],
watch: {
isChecked: function (val) {
if (val) {
this.$store.commit('ADD_ITEM_TO_CLIPBOARD', this.entry)
} else {
this.$store.commit('REMOVE_ITEM_FROM_CLIPBOARD', this.entry.data.id)
}
}
},
data() {
return {
mobileMultiSelect: false,
itemName: undefined,
isSelected: false,
isChecked: false,
}
},
computed: {