diff --git a/ayanova/src/components/dash-labor-hours-personal.vue b/ayanova/src/components/dash-labor-hours-personal.vue index 86833b9c..e63cd889 100644 --- a/ayanova/src/components/dash-labor-hours-personal.vue +++ b/ayanova/src/components/dash-labor-hours-personal.vue @@ -127,8 +127,7 @@ export default { }, methods: { updateSettings: function() { - //save the settings here and trigger save of all settings or something?? not clear - //emit an update and this id I guess? and let home-dashboard save all settings + this.$emit("dash-change"); this.context = false; }, loadData: function() { diff --git a/ayanova/src/views/home-dashboard.vue b/ayanova/src/views/home-dashboard.vue index bcc317df..221b3684 100644 --- a/ayanova/src/views/home-dashboard.vue +++ b/ayanova/src/views/home-dashboard.vue @@ -62,6 +62,7 @@ @dash-move-back="dashMoveBack" @dash-move-forward="dashMoveForward" @dash-move-end="dashMoveEnd" + @dash-change="dashSaveSettings" > @@ -146,9 +147,9 @@ export default { } }, methods: { - // hasItems: function() { - // return this.effectiveView && this.effectiveView.length > 0; - // }, + dashSaveSettings: function() { + this.saveView(); + }, dashMoveStart: function(id) { this.move("start", id); },