[pbs-devel] [PATCH proxmox-backup 22/26] ui: datstore selector: add icon for removable datastores

Hannes Laimer h.laimer at proxmox.com
Tue Jul 5 15:08:30 CEST 2022


Signed-off-by: Hannes Laimer <h.laimer at proxmox.com>
---
 www/form/DataStoreSelector.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/www/form/DataStoreSelector.js b/www/form/DataStoreSelector.js
index eae42bef..e1ee46ad 100644
--- a/www/form/DataStoreSelector.js
+++ b/www/form/DataStoreSelector.js
@@ -25,6 +25,9 @@ Ext.define('PBS.form.DataStoreSelector', {
 			let tip = Ext.String.htmlEncode(PBS.Utils.renderMaintenance(rec.data?.maintenance));
 			icon = ` <i data-qtip="${tip}" class="fa fa-wrench"></i>`;
 		    }
+		    if (rec.data?.removable) {
+			icon = ` <i class="fa fa-usb"></i>`;
+		    }
 		    return Ext.String.htmlEncode(v) + icon;
 		},
 		flex: 1,
-- 
2.30.2






More information about the pbs-devel mailing list