Improve usability

This commit is contained in:
syuilo
2018-09-18 14:50:13 +09:00
parent dba04cc59c
commit 5184a07cf2
4 changed files with 50 additions and 18 deletions

View File

@@ -1,5 +1,5 @@
<template>
<mk-window ref="window" is-modal @closed="onWindowClosed">
<mk-window ref="window" is-modal @closed="onWindowClosed" :animation="animation">
<span slot="header" :class="$style.header">%fa:retweet%%i18n:@title%</span>
<mk-renote-form ref="form" :note="note" @posted="onPosted" @canceled="onCanceled" v-hotkey.global="keymap"/>
</mk-window>
@@ -9,7 +9,18 @@
import Vue from 'vue';
export default Vue.extend({
props: ['note'],
props: {
note: {
type: Object,
required: true
},
animation: {
type: Boolean,
required: false,
default: true
}
},
computed: {
keymap(): any {