Support multiple namespaces for Consul and ConsulCatalog providers
Co-authored-by: Kevin Pollet <pollet.kevin@gmail.com>
This commit is contained in:
parent
f352c34136
commit
f90e3817e8
28 changed files with 531 additions and 152 deletions
|
@ -1142,9 +1142,15 @@ export default {
|
|||
getProviderLogoPath (provider) {
|
||||
const name = provider.toLowerCase()
|
||||
|
||||
if (name.includes('plugin-')) {
|
||||
if (name.startsWith('plugin-')) {
|
||||
return 'statics/providers/plugin.svg'
|
||||
}
|
||||
if (name.startsWith('consul-')) {
|
||||
return `statics/providers/consul.svg`
|
||||
}
|
||||
if (name.startsWith('consulcatalog-')) {
|
||||
return `statics/providers/consulcatalog.svg`
|
||||
}
|
||||
|
||||
return `statics/providers/${name}.svg`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue