Save only if status has something to save
This commit is contained in:
parent
5e08c4537b
commit
3c39269be8
|
@ -672,7 +672,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 New Issue