mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-25 15:35:12 +00:00
Resolve #6091
This commit is contained in:
parent
569be15705
commit
969cd16638
2 changed files with 12 additions and 2 deletions
|
@ -433,6 +433,7 @@ listen: "聴く"
|
||||||
none: "なし"
|
none: "なし"
|
||||||
volume: "音量"
|
volume: "音量"
|
||||||
details: "詳細"
|
details: "詳細"
|
||||||
|
chooseEmoji: "絵文字を選択"
|
||||||
|
|
||||||
_sfx:
|
_sfx:
|
||||||
note: "ノート"
|
note: "ノート"
|
||||||
|
|
|
@ -3,13 +3,13 @@
|
||||||
<div class="_title"><fa :icon="faLaugh"/> {{ $t('reaction') }}</div>
|
<div class="_title"><fa :icon="faLaugh"/> {{ $t('reaction') }}</div>
|
||||||
<div class="_content">
|
<div class="_content">
|
||||||
<mk-input v-model="reactions" style="font-family: 'Segoe UI Emoji', 'Noto Color Emoji', Roboto, HelveticaNeue, Arial, sans-serif">
|
<mk-input v-model="reactions" style="font-family: 'Segoe UI Emoji', 'Noto Color Emoji', Roboto, HelveticaNeue, Arial, sans-serif">
|
||||||
{{ $t('reaction') }}<template #desc>{{ $t('reactionSettingDescription') }}</template>
|
{{ $t('reaction') }}<template #desc>{{ $t('reactionSettingDescription') }} <button class="_textButton" @click="chooseEmoji">{{ $t('chooseEmoji') }}</button></template>
|
||||||
</mk-input>
|
</mk-input>
|
||||||
|
<mk-button inline @click="setDefault"><fa :icon="faUndo"/> {{ $t('default') }}</mk-button>
|
||||||
</div>
|
</div>
|
||||||
<div class="_footer">
|
<div class="_footer">
|
||||||
<mk-button @click="save()" primary inline :disabled="!changed"><fa :icon="faSave"/> {{ $t('save') }}</mk-button>
|
<mk-button @click="save()" primary inline :disabled="!changed"><fa :icon="faSave"/> {{ $t('save') }}</mk-button>
|
||||||
<mk-button inline @click="preview"><fa :icon="faEye"/> {{ $t('preview') }}</mk-button>
|
<mk-button inline @click="preview"><fa :icon="faEye"/> {{ $t('preview') }}</mk-button>
|
||||||
<mk-button inline @click="setDefault"><fa :icon="faUndo"/> {{ $t('default') }}</mk-button>
|
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
|
@ -72,6 +72,15 @@ export default Vue.extend({
|
||||||
setDefault() {
|
setDefault() {
|
||||||
this.reactions = '👍❤😆🤔😮🎉💢😥😇🍮';
|
this.reactions = '👍❤😆🤔😮🎉💢😥😇🍮';
|
||||||
},
|
},
|
||||||
|
|
||||||
|
async chooseEmoji(ev) {
|
||||||
|
const vm = this.$root.new(await import('../../components/emoji-picker.vue').then(m => m.default), {
|
||||||
|
source: ev.currentTarget || ev.target
|
||||||
|
}).$once('chosen', emoji => {
|
||||||
|
this.reactions += emoji;
|
||||||
|
vm.close();
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue