api2/admin/datastore: accept "/" as path for root
makes more sense than sending "root'" Signed-off-by: Dominik Csapak <d.csapak@proxmox.com> Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
This commit is contained in:
parent
227501c063
commit
5279ee745f
@ -1328,7 +1328,7 @@ pub fn catalog(
|
||||
|
||||
let mut catalog_reader = CatalogReader::new(reader);
|
||||
|
||||
let path = if filepath != "root" {
|
||||
let path = if filepath != "root" && filepath != "/" {
|
||||
base64::decode(filepath)?
|
||||
} else {
|
||||
vec![b'/']
|
||||
|
@ -185,6 +185,7 @@ Ext.define("PBS.window.FileBrowser", {
|
||||
store: {
|
||||
autoLoad: false,
|
||||
model: 'pbs-file-tree',
|
||||
defaultRootId: '/',
|
||||
nodeParam: 'filepath',
|
||||
sorters: 'text',
|
||||
proxy: {
|
||||
|
Loading…
Reference in New Issue
Block a user