mirror of
https://codeberg.org/yeentown/barkey
synced 2024-12-02 12:17:28 +00:00
Fix #1957
This commit is contained in:
parent
7ec9b03990
commit
138fa1454f
2 changed files with 10 additions and 6 deletions
|
@ -137,7 +137,9 @@ export default Vue.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
canPost(): boolean {
|
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);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -307,8 +309,8 @@ export default Vue.extend({
|
||||||
}, err => {
|
}, err => {
|
||||||
alert('エラー: ' + err.message);
|
alert('エラー: ' + err.message);
|
||||||
}, {
|
}, {
|
||||||
enableHighAccuracy: true
|
enableHighAccuracy: true
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
removeGeo() {
|
removeGeo() {
|
||||||
|
|
|
@ -132,7 +132,9 @@ export default Vue.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
canPost(): boolean {
|
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);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -221,8 +223,8 @@ export default Vue.extend({
|
||||||
}, err => {
|
}, err => {
|
||||||
alert('%i18n:@error%: ' + err.message);
|
alert('%i18n:@error%: ' + err.message);
|
||||||
}, {
|
}, {
|
||||||
enableHighAccuracy: true
|
enableHighAccuracy: true
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
removeGeo() {
|
removeGeo() {
|
||||||
|
|
Loading…
Reference in a new issue