ui: usbselector: add empty text for UX
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
dfa900349c
commit
04d2d75887
@ -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: [
|
||||
|
Loading…
Reference in New Issue
Block a user