UI и API: экран серверов доступа и фильтр SearchUsers

This commit is contained in:
AidarKC
2026-07-28 16:20:29 +04:00
parent 64818c586b
commit 0ed78e2202
12 changed files with 457 additions and 16 deletions
+6 -2
View File
@@ -2603,8 +2603,12 @@ export class AuthService {
return response.payload || {};
}
async searchUsers(prefix) {
const response = await this.ws.request('SearchUsers', { prefix });
async searchUsers(prefix, options = {}) {
const payload = { prefix };
if (typeof options?.isServer === 'boolean') {
payload.isServer = options.isServer;
}
const response = await this.ws.request('SearchUsers', payload);
if (response.status !== 200) throw opError('SearchUsers', response);
return response.payload?.logins || [];
}