mirror of
https://github.com/containous/traefik.git
synced 2025-03-14 00:58:23 +03:00
Fix weighted service provider icon
This commit is contained in:
parent
5c091a1871
commit
1b6c7af3eb
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user