Improve usability

This commit is contained in:
syuilo
2018-09-01 09:16:25 +09:00
parent 4c6fb60dd2
commit 6819eb3b4d
11 changed files with 72 additions and 45 deletions

View File

@ -60,6 +60,13 @@
</footer>
</div>
</article>
<modal name="replyForm">
<mk-post-form @posted="replyFormClosed" @cancel="replyFormClosed" :reply="p"/>
</modal>
<modal name="renoteForm">
<mk-post-form @posted="renoteFormClosed" @cancel="renoteFormClosed" :renote="p"/>
</modal>
</div>
</template>
@ -195,15 +202,19 @@ export default Vue.extend({
},
reply() {
(this as any).apis.post({
reply: this.p
});
this.$modal.push('replyForm');
},
replyFormClosed() {
this.$modal.pop();
},
renote() {
(this as any).apis.post({
renote: this.p
});
this.$modal.push('renoteForm');
},
renoteFormClosed() {
this.$modal.pop();
},
react() {