summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorJose Vargas <jvargas@gitlab.com>2018-09-25 16:43:43 -0500
committerJose Vargas <jvargas@gitlab.com>2018-09-25 18:15:30 -0500
commit6ff8146dc23bd1c008a347ab7c4bfbfd8c2486a9 (patch)
treee19792355e1adb932308835947160e23f48df43b /app
parentefedd968fb35a1113414885b48798c2723c7578d (diff)
downloadgitlab-ce-6ff8146dc23bd1c008a347ab7c4bfbfd8c2486a9.tar.gz
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/monitoring/components/dashboard.vue6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/monitoring/components/dashboard.vue b/app/assets/javascripts/monitoring/components/dashboard.vue
index 228eff006f7..67338aa96c3 100644
--- a/app/assets/javascripts/monitoring/components/dashboard.vue
+++ b/app/assets/javascripts/monitoring/components/dashboard.vue
@@ -98,12 +98,12 @@ export default {
state: 'gettingStarted',
showEmptyState: true,
hoverData: {},
- updateDashboardKeyNumber: 0,
+ elWidth: 0,
};
},
computed: {
forceRedraw() {
- return `dashboard-key-${this.updateDashboardKeyNumber}`;
+ return this.elWidth;
},
},
created() {
@@ -165,7 +165,7 @@ export default {
});
},
resize() {
- this.updateDashboardKeyNumber += 1;
+ this.elWidth = this.$el.clientWidth;
},
hoverChanged(data) {
this.hoverData = data;