update the system/users endpoint to include user backends names.

This commit is contained in:
arabcoders
2025-04-02 18:54:43 +03:00
parent 7b12883003
commit 4551c16d97
2 changed files with 16 additions and 4 deletions

View File

@@ -50,7 +50,12 @@ onMounted(async () => {
}
const json = await response.json();
if ('users' in json) {
users.value = json?.users;
json.users.forEach(user => {
const username = user.user
if (!users.value.includes(username)) {
users.value.push(username);
}
});
}
} catch (e) {
notification('error', `Failed to fetch users. ${e}`);