diff --git a/plugins/core/package-lock.json b/plugins/core/package-lock.json
index 86d580f4a..3792c593c 100644
--- a/plugins/core/package-lock.json
+++ b/plugins/core/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "@scrypted/core",
- "version": "0.0.81",
+ "version": "0.0.82",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@scrypted/core",
- "version": "0.0.81",
+ "version": "0.0.82",
"license": "Apache-2.0",
"dependencies": {
"@scrypted/sdk": "file:../../sdk",
diff --git a/plugins/core/package.json b/plugins/core/package.json
index 7376179a8..87b1e7ec7 100644
--- a/plugins/core/package.json
+++ b/plugins/core/package.json
@@ -1,6 +1,6 @@
{
"name": "@scrypted/core",
- "version": "0.0.81",
+ "version": "0.0.82",
"description": "Scrypted Core plugin. Provides the UI, websocket, and engine.io APIs.",
"author": "Scrypted",
"license": "Apache-2.0",
diff --git a/plugins/core/ui/src/common/Grower.vue b/plugins/core/ui/src/common/Grower.vue
index bc6a41768..d013711b5 100644
--- a/plugins/core/ui/src/common/Grower.vue
+++ b/plugins/core/ui/src/common/Grower.vue
@@ -4,7 +4,11 @@
- {{ addButton }}
+
+
+ {{ addButton }}
+ {{ saveButton }}
+
@@ -17,20 +21,24 @@ export default {
empty: undefined,
addButton: {
default: "Add",
- type: String
- }
+ type: String,
+ },
+ saveButton: {
+ default: undefined,
+ type: String,
+ },
},
mixins: [CustomValue],
methods: {
setIndex(index) {
- return entry => {
- this.lazyValue[index] = entry;
- this.onInput();
+ return (entry) => {
+ this.lazyValue[index] = entry;
+ this.onInput();
};
},
add() {
this.lazyValue.push(cloneDeep(this.empty));
- }
- }
+ },
+ },
};
diff --git a/plugins/core/ui/src/common/Storage.vue b/plugins/core/ui/src/common/Storage.vue
index dcc1f3591..3ad7b657e 100644
--- a/plugins/core/ui/src/common/Storage.vue
+++ b/plugins/core/ui/src/common/Storage.vue
@@ -1,9 +1,11 @@
diff --git a/plugins/core/ui/src/common/StorageEntry.vue b/plugins/core/ui/src/common/StorageEntry.vue
index 81a37e00a..369a82bd7 100644
--- a/plugins/core/ui/src/common/StorageEntry.vue
+++ b/plugins/core/ui/src/common/StorageEntry.vue
@@ -1,24 +1,31 @@
-
+
+
+
+
-
+
+
\ No newline at end of file
diff --git a/plugins/core/ui/src/interfaces/Setting.vue b/plugins/core/ui/src/interfaces/Setting.vue
index a10c381ec..e8577b126 100644
--- a/plugins/core/ui/src/interfaces/Setting.vue
+++ b/plugins/core/ui/src/interfaces/Setting.vue
@@ -21,13 +21,15 @@
persistent-hint
>
-
- fa-save
+
+ send
@@ -41,26 +43,27 @@
-
- Save
-
+ Save
-
- fa-save
+
+ send
-
- fa-save
+
+ send
@@ -89,7 +96,7 @@ export default {
mixins: [RPCInterface],
components: {
DevicePicker,
- Grower
+ Grower,
},
computed: {
booleanValue: {
@@ -100,7 +107,7 @@ export default {
},
set(val) {
this.lazyValue.value = val.toString();
- }
+ },
},
dirty() {
var type = this.value.type || "";
@@ -118,8 +125,8 @@ export default {
expression = "true;";
}
var ret = this.$store.state.scrypted.devices
- .map(id => this.$scrypted.systemManager.getDeviceById(id))
- .filter(device => {
+ .map((id) => this.$scrypted.systemManager.getDeviceById(id))
+ .filter((device) => {
try {
return eval(
`(function() { var interfaces = ${JSON.stringify(
@@ -130,16 +137,16 @@ export default {
return true;
}
})
- .map(device => ({
+ .map((device) => ({
id: device.id,
- text: device.name
+ text: device.name,
}));
- ret.splice(0, 0, {
- id: null,
- text: "Select a Device",
- })
- return ret;
- }
+ ret.splice(0, 0, {
+ id: null,
+ text: "Select a Device",
+ });
+ return ret;
+ },
},
methods: {
createLazyValue() {
@@ -159,17 +166,17 @@ export default {
}
var ret = cloneDeep(this.lazyValue);
- ret.value = JSON.stringify(ret.value.filter(id => id));
+ ret.value = JSON.stringify(ret.value.filter((id) => id));
return ret;
},
save() {
this.rpc().putSetting(this.lazyValue.key, this.createInputValue().value);
this.onInput();
- }
- }
+ },
+ },
};
-