ui: group filter: make also local filter NS aware
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
9dde8cd625
commit
54d315c951
|
@ -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) => {
|
||||
|
|
Loading…
Reference in New Issue