nanokvm: persist settings from device creation

This commit is contained in:
Koushik Dutta
2025-03-13 15:27:39 -07:00
parent 642795dd9d
commit 6f4b360d2a
3 changed files with 5 additions and 3 deletions

View File

@@ -16,7 +16,7 @@
"@types/node": "^22.13.10",
"@types/ws": "^8.18.0"
},
"version": "0.0.6"
"version": "0.0.7"
},
"../../common": {
"name": "@scrypted/common",
@@ -225,5 +225,5 @@
"requires": {}
}
},
"version": "0.0.6"
"version": "0.0.7"
}

View File

@@ -1,6 +1,6 @@
{
"name": "@scrypted/nanokvm",
"version": "0.0.6",
"version": "0.0.7",
"scripts": {
"scrypted-setup-project": "scrypted-setup-project",
"prescrypted-setup-project": "scrypted-package-json",

View File

@@ -322,6 +322,8 @@ class NanoKVMPlugin extends ScryptedDeviceBase implements DeviceProvider, Device
const device = await this.getDevice(nativeId) as NanoKVMDevice;
device.storageSettings.values.host = settings.host as string;
device.storageSettings.values.username = settings.username as string || 'admin';
device.storageSettings.values.password = settings.password as string;
return id;
}