mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-26 21:33:01 +00:00
Improve readability
This commit is contained in:
parent
a832672b59
commit
562cd6ad0b
2 changed files with 13 additions and 1 deletions
|
@ -77,6 +77,7 @@ import extractMentions from '../../../../../misc/extract-mentions';
|
||||||
|
|
||||||
export default Vue.extend({
|
export default Vue.extend({
|
||||||
i18n: i18n('desktop/views/components/post-form.vue'),
|
i18n: i18n('desktop/views/components/post-form.vue'),
|
||||||
|
|
||||||
components: {
|
components: {
|
||||||
XDraggable,
|
XDraggable,
|
||||||
MkVisibilityChooser
|
MkVisibilityChooser
|
||||||
|
|
|
@ -21,7 +21,14 @@ import i18n from '../../../i18n';
|
||||||
|
|
||||||
export default Vue.extend({
|
export default Vue.extend({
|
||||||
i18n: i18n('desktop/views/components/renote-form.vue'),
|
i18n: i18n('desktop/views/components/renote-form.vue'),
|
||||||
props: ['note'],
|
|
||||||
|
props: {
|
||||||
|
note: {
|
||||||
|
type: Object,
|
||||||
|
required: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
wait: false,
|
wait: false,
|
||||||
|
@ -29,6 +36,7 @@ export default Vue.extend({
|
||||||
visibility: this.$store.state.settings.defaultNoteVisibility
|
visibility: this.$store.state.settings.defaultNoteVisibility
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
ok(v: string) {
|
ok(v: string) {
|
||||||
this.wait = true;
|
this.wait = true;
|
||||||
|
@ -44,9 +52,11 @@ export default Vue.extend({
|
||||||
this.wait = false;
|
this.wait = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
cancel() {
|
cancel() {
|
||||||
this.$emit('canceled');
|
this.$emit('canceled');
|
||||||
},
|
},
|
||||||
|
|
||||||
onQuote() {
|
onQuote() {
|
||||||
this.quote = true;
|
this.quote = true;
|
||||||
|
|
||||||
|
@ -54,6 +64,7 @@ export default Vue.extend({
|
||||||
(this.$refs.form as any).focus();
|
(this.$refs.form as any).focus();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
onChildFormPosted() {
|
onChildFormPosted() {
|
||||||
this.$emit('posted');
|
this.$emit('posted');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue