Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Vargas <jvargas@gitlab.com>2018-09-26 00:43:43 +0300
committerJose Vargas <jvargas@gitlab.com>2018-09-26 02:15:30 +0300
commit6ff8146dc23bd1c008a347ab7c4bfbfd8c2486a9 (patch)
treee19792355e1adb932308835947160e23f48df43b /app/assets/javascripts/monitoring
parentefedd968fb35a1113414885b48798c2723c7578d (diff)
Change forceRedraw key format
Diffstat (limited to 'app/assets/javascripts/monitoring')
-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;