mirror of
https://github.com/h3poteto/whalebird-desktop
synced 2025-01-31 01:27:26 +01:00
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)
|
||||
},
|
||||
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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user