biome format --write
This commit is contained in:
parent
8372348148
commit
9262e803ec
415 changed files with 54076 additions and 17419 deletions
|
|
@ -9,34 +9,32 @@ import StillImage from 'src/components/still-image/still-image.vue'
|
|||
library.add(faChevronRight, faFolder)
|
||||
|
||||
const StatusBookmarkFolderMenu = {
|
||||
props: [
|
||||
'status',
|
||||
'close'
|
||||
],
|
||||
data () {
|
||||
props: ['status', 'close'],
|
||||
data() {
|
||||
return {}
|
||||
},
|
||||
components: {
|
||||
Popover,
|
||||
StillImage
|
||||
StillImage,
|
||||
},
|
||||
computed: {
|
||||
...mapState(useBookmarkFoldersStore, {
|
||||
folders: store => store.allFolders
|
||||
folders: (store) => store.allFolders,
|
||||
}),
|
||||
folderId () {
|
||||
folderId() {
|
||||
return this.status.bookmark_folder_id
|
||||
}
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
toggleFolder (id) {
|
||||
toggleFolder(id) {
|
||||
const value = id === this.folderId ? null : id
|
||||
|
||||
this.$store.dispatch('bookmark', { id: this.status.id, bookmark_folder_id: value })
|
||||
this.$store
|
||||
.dispatch('bookmark', { id: this.status.id, bookmark_folder_id: value })
|
||||
.then(() => this.$emit('onSuccess'))
|
||||
.catch(err => this.$emit('onError', err.error.error))
|
||||
}
|
||||
}
|
||||
.catch((err) => this.$emit('onError', err.error.error))
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
export default StatusBookmarkFolderMenu
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue