ui: group filter: make also local filter NS aware

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-05-13 10:27:48 +02:00
parent 9dde8cd625
commit 54d315c951
1 changed files with 4 additions and 4 deletions

View File

@ -210,14 +210,14 @@ Ext.define('PBS.form.GroupFilter', {
let url;
if (me.remote) {
url = `/api2/json/config/remote/${me.remote}/scan/${me.datastore}/groups`;
if (me.namespace) {
url += `?namespace=${me.namespace}`;
}
} else if (me.datastore) {
url = `/api2/json/admin/datastore/${me.datastore}/groups`;
} else {
return;
}
if (me.namespace) {
url += `?namespace=${me.namespace}`;
}
me.setDsStoreUrl(url);
me.dsStore.load({
callback: (records) => {