mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-10-04 09:34:02 +00:00
ui: datastore options: fix default for prune notify render
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
2abb984b58
commit
e1a311f91c
@ -154,7 +154,8 @@ Ext.define('PBS.Datastore.Options', {
|
||||
let notify = PBS.Utils.parsePropertyString(value);
|
||||
let res = [];
|
||||
for (const k of ['Verify', 'Sync', 'GC', 'Prune']) {
|
||||
let v = Ext.String.capitalize(notify[k.toLowerCase()]) || 'Always';
|
||||
let fallback = k === 'Prune' ? 'Error' : 'Always';
|
||||
let v = Ext.String.capitalize(notify[k.toLowerCase()]) || fallback;
|
||||
res.push(`${k}=${v}`);
|
||||
}
|
||||
return res.join(', ');
|
||||
|
Loading…
Reference in New Issue
Block a user