ui: usbselector: add empty text for UX

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2019-09-26 18:00:18 +02:00
parent dfa900349c
commit 04d2d75887

View File

@ -42,9 +42,16 @@ Ext.define('PVE.form.USBSelector', {
}
]
});
let emptyText = '';
if (me.type === 'device') {
emptyText = gettext('Passthrough a specific device');
} else {
emptyText = gettext('Passthrough a full port');
}
Ext.apply(me, {
store: store,
emptyText: emptyText,
listConfig: {
width: 500,
columns: [