summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-05-29 02:00:45 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-05-29 02:00:45 +0900
commite5431648fd1136df26388b496cf9ba9b3066c001 (patch)
tree74249af3a1f940b0df1f25b96192903f1596cf6f /src
parentFix bug (diff)
downloadmisskey-e5431648fd1136df26388b496cf9ba9b3066c001.tar.gz
misskey-e5431648fd1136df26388b496cf9ba9b3066c001.tar.bz2
misskey-e5431648fd1136df26388b496cf9ba9b3066c001.zip
:v:
Diffstat (limited to 'src')
-rw-r--r--src/client/app/desktop/views/components/post-form.vue8
-rw-r--r--src/client/app/desktop/views/widgets/post-form.vue8
-rw-r--r--src/client/app/mobile/views/components/post-form.vue8
3 files changed, 15 insertions, 9 deletions
diff --git a/src/client/app/desktop/views/components/post-form.vue b/src/client/app/desktop/views/components/post-form.vue
index ad829065b0..7b2adfe707 100644
--- a/src/client/app/desktop/views/components/post-form.vue
+++ b/src/client/app/desktop/views/components/post-form.vue
@@ -86,13 +86,15 @@ export default Vue.extend({
},
placeholder(): string {
- const x = [
+ const xs = [
'%i18n:common.note-placeholders.a%',
'%i18n:common.note-placeholders.b%',
'%i18n:common.note-placeholders.c%',
'%i18n:common.note-placeholders.d%',
- '%i18n:common.note-placeholders.e%'
- ][Math.floor(Math.random() * 5)];
+ '%i18n:common.note-placeholders.e%',
+ '%i18n:common.note-placeholders.f%'
+ ];
+ const x = xs[Math.floor(Math.random() * xs.length)];
return this.renote
? '%i18n:@quote-placeholder%'
diff --git a/src/client/app/desktop/views/widgets/post-form.vue b/src/client/app/desktop/views/widgets/post-form.vue
index fb4adf70b8..3c4ade0e81 100644
--- a/src/client/app/desktop/views/widgets/post-form.vue
+++ b/src/client/app/desktop/views/widgets/post-form.vue
@@ -24,13 +24,15 @@ export default define({
},
computed: {
placeholder(): string {
- return [
+ const xs = [
'%i18n:common.note-placeholders.a%',
'%i18n:common.note-placeholders.b%',
'%i18n:common.note-placeholders.c%',
'%i18n:common.note-placeholders.d%',
- '%i18n:common.note-placeholders.e%'
- ][Math.floor(Math.random() * 5)];
+ '%i18n:common.note-placeholders.e%',
+ '%i18n:common.note-placeholders.f%'
+ ];
+ return xs[Math.floor(Math.random() * xs.length)];
}
},
methods: {
diff --git a/src/client/app/mobile/views/components/post-form.vue b/src/client/app/mobile/views/components/post-form.vue
index 61f0462659..beacb1721b 100644
--- a/src/client/app/mobile/views/components/post-form.vue
+++ b/src/client/app/mobile/views/components/post-form.vue
@@ -80,13 +80,15 @@ export default Vue.extend({
},
placeholder(): string {
- const x = [
+ const xs = [
'%i18n:common.note-placeholders.a%',
'%i18n:common.note-placeholders.b%',
'%i18n:common.note-placeholders.c%',
'%i18n:common.note-placeholders.d%',
- '%i18n:common.note-placeholders.e%'
- ][Math.floor(Math.random() * 5)];
+ '%i18n:common.note-placeholders.e%',
+ '%i18n:common.note-placeholders.f%'
+ ];
+ const x = xs[Math.floor(Math.random() * xs.length)];
return this.renote
? '%i18n:@quote-placeholder%'