Skip to content
Snippets Groups Projects
Verified Commit b68c3586 authored by Marie's avatar Marie
Browse files

fix: reversi allowing you to search globally instead of just locally

Misskey used a local option in the select section but os nor userselectdialog supported this.
parent 5f36bb67
No related branches found
No related tags found
No related merge requests found
......@@ -76,6 +76,7 @@ const emit = defineEmits<{
const props = defineProps<{
includeSelf?: boolean;
local?: boolean;
}>();
const username = ref('');
......@@ -90,6 +91,7 @@ function search() {
users.value = [];
return;
}
if (props.local) host.value = '.';
misskeyApi('users/search-by-username-and-host', {
username: username.value,
host: host.value,
......
......@@ -419,7 +419,7 @@ export function form(title, form) {
});
}
export async function selectUser(opts: { includeSelf?: boolean } = {}): Promise<Misskey.entities.UserLite> {
export async function selectUser(opts: { includeSelf?: boolean, local?: boolean } = {}): Promise<Misskey.entities.UserLite> {
return new Promise((resolve, reject) => {
popup(defineAsyncComponent(() => import('@/components/MkUserSelectDialog.vue')), {
includeSelf: opts.includeSelf,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment