Better post form
This commit is contained in:
@ -60,19 +60,11 @@
|
||||
</footer>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<modal :name="replyFormId">
|
||||
<mk-post-form @posted="replyFormClosed" @cancel="replyFormClosed" :reply="p"/>
|
||||
</modal>
|
||||
<modal :name="renoteFormId">
|
||||
<mk-post-form @posted="renoteFormClosed" @cancel="renoteFormClosed" :renote="p"/>
|
||||
</modal>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import Vue from 'vue';
|
||||
import * as uuid from 'uuid';
|
||||
import parse from '../../../../../mfm/parse';
|
||||
|
||||
import MkNoteMenu from '../../../common/views/components/note-menu.vue';
|
||||
@ -90,9 +82,7 @@ export default Vue.extend({
|
||||
return {
|
||||
showContent: false,
|
||||
connection: null,
|
||||
connectionId: null,
|
||||
replyFormId: uuid(),
|
||||
renoteFormId: uuid()
|
||||
connectionId: null
|
||||
};
|
||||
},
|
||||
|
||||
@ -205,19 +195,15 @@ export default Vue.extend({
|
||||
},
|
||||
|
||||
reply() {
|
||||
this.$modal.push(this.replyFormId);
|
||||
},
|
||||
|
||||
replyFormClosed() {
|
||||
this.$modal.pop();
|
||||
(this as any).apis.post({
|
||||
reply: this.p
|
||||
});
|
||||
},
|
||||
|
||||
renote() {
|
||||
this.$modal.push(this.renoteFormId);
|
||||
},
|
||||
|
||||
renoteFormClosed() {
|
||||
this.$modal.pop();
|
||||
(this as any).apis.post({
|
||||
renote: this.p
|
||||
});
|
||||
},
|
||||
|
||||
react() {
|
||||
|
Reference in New Issue
Block a user