wip
This commit is contained in:
@@ -378,11 +378,8 @@ export default defineComponent({
|
|||||||
|
|
||||||
chooseUser() {
|
chooseUser() {
|
||||||
this.close();
|
this.close();
|
||||||
const vm = os.modal(MkUserSelect, {});
|
os.modal(MkUserSelect, {}).then(user => {
|
||||||
vm.$once('selected', user => {
|
|
||||||
this.complete('user', user);
|
this.complete('user', user);
|
||||||
});
|
|
||||||
vm.$once('closed', () => {
|
|
||||||
this.textarea.focus();
|
this.textarea.focus();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@@ -424,12 +424,11 @@ export default defineComponent({
|
|||||||
// TODO: information dialog
|
// TODO: information dialog
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const w = os.modal(MkVisibilityChooser, {
|
os.modal(MkVisibilityChooser, {
|
||||||
source: this.$refs.visibilityButton,
|
source: this.$refs.visibilityButton,
|
||||||
currentVisibility: this.visibility,
|
currentVisibility: this.visibility,
|
||||||
currentLocalOnly: this.localOnly
|
currentLocalOnly: this.localOnly
|
||||||
});
|
}).then(({ visibility, localOnly }) => {
|
||||||
w.$once('chosen', ({ visibility, localOnly }) => {
|
|
||||||
this.applyVisibility(visibility);
|
this.applyVisibility(visibility);
|
||||||
this.localOnly = localOnly;
|
this.localOnly = localOnly;
|
||||||
});
|
});
|
||||||
@@ -440,8 +439,7 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
|
|
||||||
addVisibleUser() {
|
addVisibleUser() {
|
||||||
const vm = os.modal(MkUserSelect, {});
|
os.modal(MkUserSelect, {}).then(user => {
|
||||||
vm.$once('selected', user => {
|
|
||||||
this.visibleUsers.push(user);
|
this.visibleUsers.push(user);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -604,8 +602,7 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
|
|
||||||
insertMention() {
|
insertMention() {
|
||||||
const vm = os.modal(MkUserSelect, {});
|
os.modal(MkUserSelect, {}).then(user => {
|
||||||
vm.$once('selected', user => {
|
|
||||||
insertTextAtCursor(this.$refs.text, getAcct(user) + ' ');
|
insertTextAtCursor(this.$refs.text, getAcct(user) + ' ');
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user