mirror of
https://github.com/koush/scrypted.git
synced 2026-02-08 08:19:56 +00:00
common: settings mixin storage key
This commit is contained in:
@@ -8,6 +8,7 @@ export interface SettingsMixinDeviceOptions {
|
||||
mixinDeviceInterfaces: ScryptedInterface[];
|
||||
group: string;
|
||||
groupKey: string;
|
||||
mixinStorageSuffix?: string;
|
||||
}
|
||||
|
||||
export abstract class SettingsMixinDeviceBase<T> extends MixinDeviceBase<T & Settings> implements Settings {
|
||||
@@ -15,7 +16,7 @@ export abstract class SettingsMixinDeviceBase<T> extends MixinDeviceBase<T & Set
|
||||
settingsGroupKey: string;
|
||||
|
||||
constructor(mixinDevice: any, mixinDeviceState: { [key: string]: any }, options: SettingsMixinDeviceOptions) {
|
||||
super(mixinDevice, options.mixinDeviceInterfaces, mixinDeviceState, options.providerNativeId);
|
||||
super(mixinDevice, options.mixinDeviceInterfaces, mixinDeviceState, options.providerNativeId, options.mixinStorageSuffix);
|
||||
|
||||
this.settingsGroup = options.group;
|
||||
this.settingsGroupKey = options.groupKey;
|
||||
|
||||
Reference in New Issue
Block a user