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

View File

@ -210,13 +210,13 @@ 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;
return;
}
if (me.namespace) {
url += `?namespace=${me.namespace}`;
}
me.setDsStoreUrl(url);
me.dsStore.load({