This commit is contained in:
Aya Morisawa 2018-07-23 13:37:29 +09:00
parent 7ec9b03990
commit 138fa1454f
2 changed files with 10 additions and 6 deletions

View File

@ -137,7 +137,9 @@ export default Vue.extend({
},
canPost(): boolean {
return !this.posting && (this.text.length != 0 || this.files.length != 0 || this.poll || this.renote);
return !this.posting &&
(1 <= this.text.length || 1 <= this.files.length || this.poll || this.renote) &&
(this.text.length <= 1000);
}
},

View File

@ -132,7 +132,9 @@ export default Vue.extend({
},
canPost(): boolean {
return !this.posting && (this.text.length != 0 || this.files.length != 0 || this.poll || this.renote);
return !this.posting &&
(1 <= this.text.length || 1 <= this.files.length || this.poll || this.renote) &&
(this.text.length <= 1000);
}
},