let collection = store.getData().getSource() ?? store.getData();
let rec = collection.find('autogenerated', true);
- let isWindows = (value ?? '').startsWith('win');
+ let isWindows = (value ?? '').startsWith('w');
if (rec) {
rec.set('hidden', !isWindows);
rec.commit();
+ get('warnings').map(w => `<li>${w}</li>`).join('') + '</ul>',
liveImportNote: get => !get('liveImport') ? ''
: gettext('Note: If anything goes wrong during the live-import, new data written by the VM may be lost.'),
- isWindows: get => (get('os') ?? '').startsWith('win'),
+ isWindows: get => (get('os') ?? '').startsWith('w'),
},
},
me.additionalCdIdx = additionalCdIdx;
me.lookup('cdGrid').getStore().add({
enable: true,
- hidden: !(me.vmConfig.ostype ?? '').startsWith('win'),
+ hidden: !(me.vmConfig.ostype ?? '').startsWith('w'),
id: additionalCdIdx,
autogenerated: true,
});