include attachments in draft
This commit is contained in:
parent
cc922029fb
commit
8657c820bd
2 changed files with 50 additions and 2 deletions
|
|
@ -2,13 +2,15 @@ import PostStatusForm from 'src/components/post_status_form/post_status_form.vue
|
|||
import EditStatusForm from 'src/components/edit_status_form/edit_status_form.vue'
|
||||
import ConfirmModal from 'src/components/confirm_modal/confirm_modal.vue'
|
||||
import StatusContent from 'src/components/status_content/status_content.vue'
|
||||
import Gallery from 'src/components/gallery/gallery.vue'
|
||||
|
||||
const Draft = {
|
||||
components: {
|
||||
PostStatusForm,
|
||||
EditStatusForm,
|
||||
ConfirmModal,
|
||||
StatusContent
|
||||
StatusContent,
|
||||
Gallery
|
||||
},
|
||||
props: {
|
||||
draft: {
|
||||
|
|
@ -17,6 +19,7 @@ const Draft = {
|
|||
}
|
||||
},
|
||||
data () {
|
||||
console.log('DRAFT', this.draft)
|
||||
return {
|
||||
editing: false,
|
||||
showingConfirmDialog: false
|
||||
|
|
@ -40,6 +43,19 @@ const Draft = {
|
|||
},
|
||||
refStatus () {
|
||||
return this.draft.refId ? this.$store.state.statuses.allStatusesObject[this.draft.refId] : undefined
|
||||
},
|
||||
localCollapseSubjectDefault () {
|
||||
return this.$store.getters.mergedConfig.collapseMessageWithSubject
|
||||
},
|
||||
nsfwClickthrough () {
|
||||
console.log(this.draft)
|
||||
if (!this.draft.nsfw) {
|
||||
return false
|
||||
}
|
||||
if (this.draft.summary && this.localCollapseSubjectDefault) {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue