Skip to content

Commit

Permalink
Merge pull request #208 from h3poteto/block_toot
Browse files Browse the repository at this point in the history
fix: Block toot when new toot modal is closed
  • Loading branch information
h3poteto authored Apr 11, 2018
2 parents 8e4dfe8 + 7fbf421 commit a4aff95
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/renderer/components/TimelineSpace/Modals/NewToot.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit a4aff95

Please sign in to comment.