From 1b6c7af3eb3ac4366076347e579728bed873dd69 Mon Sep 17 00:00:00 2001 From: Dmitry Sharshakov Date: Tue, 10 Dec 2019 17:14:06 +0300 Subject: [PATCH] Fix weighted service provider icon --- webui/src/components/_commons/PanelMirroringServices.vue | 6 +++--- webui/src/components/_commons/PanelWeightedServices.vue | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/webui/src/components/_commons/PanelMirroringServices.vue b/webui/src/components/_commons/PanelMirroringServices.vue index defa0eb74..f9b505408 100644 --- a/webui/src/components/_commons/PanelMirroringServices.vue +++ b/webui/src/components/_commons/PanelMirroringServices.vue @@ -55,11 +55,11 @@ export default { methods: { getProvider (service) { const words = service.name.split('@') - if (words.length !== 2) { - return this.provider + if (words.length === 2) { + return words[1] } - return words[1] + return this.data.provider } } } diff --git a/webui/src/components/_commons/PanelWeightedServices.vue b/webui/src/components/_commons/PanelWeightedServices.vue index fb9147913..6cf5784c0 100644 --- a/webui/src/components/_commons/PanelWeightedServices.vue +++ b/webui/src/components/_commons/PanelWeightedServices.vue @@ -55,11 +55,11 @@ export default { methods: { getProvider (service) { const words = service.name.split('@') - if (words.length !== 2) { - return this.provider + if (words.length === 2) { + return words[1] } - return words[1] + return this.data.provider } } }