mirror of
https://github.com/koush/scrypted.git
synced 2026-02-03 06:03:27 +00:00
nanokvm: persist settings from device creation
This commit is contained in:
4
plugins/nanokvm/package-lock.json
generated
4
plugins/nanokvm/package-lock.json
generated
@@ -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"
|
||||
}
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user