Skip to content

Commit

Permalink
inject
Browse files Browse the repository at this point in the history
  • Loading branch information
moellenbeck committed Aug 26, 2024
1 parent 794808f commit 0eaba66
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ui/components/UIDynamicForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import { mapState } from 'vuex';
export default {
name: 'UIDynamicForm',
inject: ['$socket'],
inject: ['$socket', '$dataTracker'], // TODO: mm - '$dataTracker'
props: {
/* do not remove entries from this - Dashboard's Layout Manager's will pass this data to your component */
id: { type: String, required: true },
Expand Down Expand Up @@ -76,6 +76,9 @@ export default {
);
},
},
created () {
this.$dataTracker(this.id)
},
mounted() {
this.$socket.on('widget-load:' + this.id, (msg) => {
this.init();
Expand Down

0 comments on commit 0eaba66

Please sign in to comment.