Merge pull request #208 from h3poteto/block_toot

fix: Block toot when new toot modal is closed
This commit is contained in:
AkiraFukushima 2018-04-12 08:09:52 +09:00 committed by GitHub
commit a4aff95307
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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',