mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 20:23:49 +01:00
Improve readability
This commit is contained in:
parent
fd07dd7fa0
commit
4c6aa5b3df
@ -77,6 +77,7 @@ import extractMentions from '../../../../../misc/extract-mentions';
|
||||
|
||||
export default Vue.extend({
|
||||
i18n: i18n('desktop/views/components/post-form.vue'),
|
||||
|
||||
components: {
|
||||
XDraggable,
|
||||
MkVisibilityChooser
|
||||
|
@ -21,7 +21,14 @@ import i18n from '../../../i18n';
|
||||
|
||||
export default Vue.extend({
|
||||
i18n: i18n('desktop/views/components/renote-form.vue'),
|
||||
props: ['note'],
|
||||
|
||||
props: {
|
||||
note: {
|
||||
type: Object,
|
||||
required: true
|
||||
}
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
wait: false,
|
||||
@ -29,6 +36,7 @@ export default Vue.extend({
|
||||
visibility: this.$store.state.settings.defaultNoteVisibility
|
||||
};
|
||||
},
|
||||
|
||||
methods: {
|
||||
ok(v: string) {
|
||||
this.wait = true;
|
||||
@ -44,9 +52,11 @@ export default Vue.extend({
|
||||
this.wait = false;
|
||||
});
|
||||
},
|
||||
|
||||
cancel() {
|
||||
this.$emit('canceled');
|
||||
},
|
||||
|
||||
onQuote() {
|
||||
this.quote = true;
|
||||
|
||||
@ -54,6 +64,7 @@ export default Vue.extend({
|
||||
(this.$refs.form as any).focus();
|
||||
});
|
||||
},
|
||||
|
||||
onChildFormPosted() {
|
||||
this.$emit('posted');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user