Add categories to bookmarking

This commit is contained in:
Peter Stuifzand 2020-08-18 22:42:23 +02:00
parent d9595a94d2
commit e71a125e64
2 changed files with 40 additions and 0 deletions

View File

@ -193,7 +193,9 @@ export default {
this.bookmarkTitle = ''; this.bookmarkTitle = '';
this.bookmarkDescription = ''; this.bookmarkDescription = '';
this.selected = [] this.selected = []
this.selectedDestinations = []
this.bookmarking = false this.bookmarking = false
this.categories = []
}) })
}, },
hasRef(key) { hasRef(key) {

View File

@ -0,0 +1,38 @@
<template>
<div>
<input type="text" class="input" v-model="categories">
</div>
</template>
<script>
export default {
name: "EntryCategories",
props: {
'value': {
type: Array,
default: []
}
},
data() {
return {
categories: ''
}
},
mounted() {
this.categories = this.value.join(" ")
},
watch: {
categories() {
let words = this.categories.split(/\s+/).filter(value => value.length !== 0)
this.$emit('input', words)
}
}
}
</script>
<style scoped>
</style>