fix: Block toot when new toot modal is closed

This commit is contained in:
AkiraFukushima 2018-04-12 00:32:59 +09:00
parent 8e4dfe8393
commit 7fbf421dd4
1 changed files with 3 additions and 0 deletions

View File

@ -108,6 +108,9 @@ export default {
this.$store.dispatch('TimelineSpace/Modals/NewToot/changeModal', false)
},
toot () {
if (!this.newTootModal) {
return
}
if (this.status.length <= 0 || this.status.length >= 500) {
return this.$message({
message: 'Toot length should be 1 to 500',