forked from Ivasoft/traefik
Fix weighted service provider icon
This commit is contained in:
committed by
Traefiker Bot
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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user