Save only if status has something to save
This commit is contained in:
parent
2edf5fc9f6
commit
dee38f7fe4
|
@ -706,7 +706,11 @@ const PostStatusForm = {
|
|||
return propsToNative(props)
|
||||
},
|
||||
saveDraft () {
|
||||
if (!this.saveInhibited) {
|
||||
if (!this.saveInhibited &&
|
||||
(this.newStatus.status ||
|
||||
this.newStatus.files?.length ||
|
||||
this.newStatus.hasPoll
|
||||
)) {
|
||||
this.$store.dispatch('addOrSaveDraft', { draft: this.newStatus })
|
||||
.then(id => {
|
||||
if (this.newStatus.id !== id) {
|
||||
|
|
Loading…
Reference in a new issue