Merge pull request #208 from h3poteto/block_toot
fix: Block toot when new toot modal is closed
This commit is contained in:
commit
a4aff95307
|
@ -108,6 +108,9 @@ export default {
|
||||||
this.$store.dispatch('TimelineSpace/Modals/NewToot/changeModal', false)
|
this.$store.dispatch('TimelineSpace/Modals/NewToot/changeModal', false)
|
||||||
},
|
},
|
||||||
toot () {
|
toot () {
|
||||||
|
if (!this.newTootModal) {
|
||||||
|
return
|
||||||
|
}
|
||||||
if (this.status.length <= 0 || this.status.length >= 500) {
|
if (this.status.length <= 0 || this.status.length >= 500) {
|
||||||
return this.$message({
|
return this.$message({
|
||||||
message: 'Toot length should be 1 to 500',
|
message: 'Toot length should be 1 to 500',
|
||||||
|
|
Loading…
Reference in New Issue