diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2018-11-17 03:25:48 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2018-11-17 03:25:48 +0900 |
| commit | 0bf54b3ff6899f4eb5e2bb42c6466094c8f0b8c4 (patch) | |
| tree | 4f19682385b6371dee4eaa1c9d733877f72ed56c /src/client | |
| parent | Hide unused login method (#3285) (diff) | |
| download | misskey-0bf54b3ff6899f4eb5e2bb42c6466094c8f0b8c4.tar.gz misskey-0bf54b3ff6899f4eb5e2bb42c6466094c8f0b8c4.tar.bz2 misskey-0bf54b3ff6899f4eb5e2bb42c6466094c8f0b8c4.zip | |
Renote visibility (#3290)
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/app/desktop/views/components/renote-form.vue | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/client/app/desktop/views/components/renote-form.vue b/src/client/app/desktop/views/components/renote-form.vue index c538b90dac..e6a09c3eea 100644 --- a/src/client/app/desktop/views/components/renote-form.vue +++ b/src/client/app/desktop/views/components/renote-form.vue @@ -5,7 +5,8 @@ <footer> <a class="quote" v-if="!quote" @click="onQuote">{{ $t('quote') }}</a> <ui-button class="button cancel" inline @click="cancel">{{ $t('cancel') }}</ui-button> - <ui-button class="button ok" inline primary @click="ok" :disabled="wait">{{ wait ? this.$t('reposting') : this.$t('renote') }}</ui-button> + <ui-button class="button home" inline :primary="visibility != 'public'" @click="ok('home')" :disabled="wait">{{ wait ? this.$t('reposting') : this.$t('renote-home') }}</ui-button> + <ui-button class="button ok" inline :primary="visibility == 'public'" @click="ok('public')" :disabled="wait">{{ wait ? this.$t('reposting') : this.$t('renote') }}</ui-button> </footer> </template> <template v-if="quote"> @@ -24,14 +25,16 @@ export default Vue.extend({ data() { return { wait: false, - quote: false + quote: false, + visibility: this.$store.state.settings.defaultNoteVisibility }; }, methods: { - ok() { + ok(v: string) { this.wait = true; this.$root.api('notes/create', { - renoteId: this.note.id + renoteId: this.note.id, + visibility: v || this.visibility }).then(data => { this.$emit('posted'); this.$notify(this.$t('success')); @@ -81,7 +84,11 @@ export default Vue.extend({ height 40px &.cancel + right 280px + + &.home right 148px + font-size 13px &.ok right 16px |