summaryrefslogtreecommitdiff
path: root/src/client/app/desktop
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-05-29 01:44:15 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-05-29 01:44:15 +0900
commit8f79f862b90b4f8bbdfed8115ceb2c2764b6eb16 (patch)
treef652e6a5ed69b70f30b0d4ba8b13393cabc6c4f2 /src/client/app/desktop
parent:v: (diff)
downloadmisskey-8f79f862b90b4f8bbdfed8115ceb2c2764b6eb16.tar.gz
misskey-8f79f862b90b4f8bbdfed8115ceb2c2764b6eb16.tar.bz2
misskey-8f79f862b90b4f8bbdfed8115ceb2c2764b6eb16.zip
:pizza:
Diffstat (limited to 'src/client/app/desktop')
-rw-r--r--src/client/app/desktop/views/components/post-form.vue12
-rw-r--r--src/client/app/desktop/views/widgets/post-form.vue13
2 files changed, 22 insertions, 3 deletions
diff --git a/src/client/app/desktop/views/components/post-form.vue b/src/client/app/desktop/views/components/post-form.vue
index 8eec677b06..ad829065b0 100644
--- a/src/client/app/desktop/views/components/post-form.vue
+++ b/src/client/app/desktop/views/components/post-form.vue
@@ -86,11 +86,19 @@ export default Vue.extend({
},
placeholder(): string {
+ const x = [
+ '%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)];
+
return this.renote
? '%i18n:@quote-placeholder%'
: this.reply
? '%i18n:@reply-placeholder%'
- : '%i18n:@note-placeholder%';
+ : x;
},
submitText(): string {
@@ -98,7 +106,7 @@ export default Vue.extend({
? '%i18n:@renote%'
: this.reply
? '%i18n:@reply%'
- : '%i18n:@note%';
+ : '%i18n:@submit%';
},
canPost(): boolean {
diff --git a/src/client/app/desktop/views/widgets/post-form.vue b/src/client/app/desktop/views/widgets/post-form.vue
index 69b21ad37a..fb4adf70b8 100644
--- a/src/client/app/desktop/views/widgets/post-form.vue
+++ b/src/client/app/desktop/views/widgets/post-form.vue
@@ -3,7 +3,7 @@
<template v-if="props.design == 0">
<p class="title">%fa:pencil-alt%%i18n:@title%</p>
</template>
- <textarea :disabled="posting" v-model="text" @keydown="onKeydown" placeholder="%i18n:@placeholder%"></textarea>
+ <textarea :disabled="posting" v-model="text" @keydown="onKeydown" :placeholder="placeholder"></textarea>
<button @click="post" :disabled="posting">%i18n:@note%</button>
</div>
</template>
@@ -22,6 +22,17 @@ export default define({
text: ''
};
},
+ computed: {
+ placeholder(): string {
+ return [
+ '%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)];
+ }
+ },
methods: {
func() {
if (this.props.design == 1) {