Add plugin's support for provider
Co-authored-by: Julien Salleyron <julien@traefik.io>
This commit is contained in:
parent
de2437cfec
commit
63ef0f1cee
24 changed files with 928 additions and 116 deletions
|
@ -15,7 +15,7 @@
|
|||
<div class="text-subtitle2">PROVIDER</div>
|
||||
<div class="block-right-text">
|
||||
<q-avatar class="provider-logo">
|
||||
<q-icon :name="`img:statics/providers/${data.provider}.svg`" />
|
||||
<q-icon :name="`img:${getProviderLogoPath}`" />
|
||||
</q-avatar>
|
||||
<div class="block-right-text-label">{{data.provider}}</div>
|
||||
</div>
|
||||
|
@ -113,6 +113,15 @@ export default {
|
|||
}
|
||||
|
||||
return null
|
||||
},
|
||||
getProviderLogoPath () {
|
||||
const name = this.data.provider.toLowerCase()
|
||||
|
||||
if (name.includes('plugin-')) {
|
||||
return 'statics/providers/plugin.svg'
|
||||
}
|
||||
|
||||
return `statics/providers/${name}.svg`
|
||||
}
|
||||
},
|
||||
filters: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue