diff --git a/public/js/components/Dashboard/Item.js b/public/js/components/Dashboard/Item.js
index 10c436047..67b814946 100755
--- a/public/js/components/Dashboard/Item.js
+++ b/public/js/components/Dashboard/Item.js
@@ -12,7 +12,8 @@ export default {
widget: null,
tmpConfig: {},
isLoading: false,
- hasConfig: true
+ hasConfig: true,
+ sharedData: null
}),
emits: [
"change",
@@ -120,7 +121,7 @@ export default {
-
+
@@ -128,7 +129,7 @@ export default {
{{ widget ? 'Config for ' + widget.setup.name : '' }}
-
+
diff --git a/public/js/components/DashboardWidget/Abstract.js b/public/js/components/DashboardWidget/Abstract.js
index a21c9834f..25c5cfb9c 100755
--- a/public/js/components/DashboardWidget/Abstract.js
+++ b/public/js/components/DashboardWidget/Abstract.js
@@ -3,17 +3,27 @@ export default {
"config",
"width",
"height",
- "configMode"
+ "configMode",
+ "sharedData"
],
emits: [
"setConfig",
- "change" // TODO(chris): do we need this?
+ "change", // TODO(chris): do we need this?
+ "update:sharedData"
],
computed: {
apiurl() {
const app_root = FHC_JS_DATA_STORAGE_OBJECT.app_root;
const ci_router = FHC_JS_DATA_STORAGE_OBJECT.ci_router;
return app_root + ci_router;
+ },
+ shared: {
+ get() {
+ return this.sharedData;
+ },
+ set(value) {
+ this.$emit('update:sharedData', value);
+ }
}
},
methods: {