Fix dashboard title for TCP middlewares

This commit is contained in:
Matthias Schneider 2021-08-17 15:02:15 +02:00 committed by GitHub
parent 2bd60f9e60
commit a7194e96e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,7 +46,7 @@
<div v-if="hasMiddlewares" class="col-12 col-md-3 q-mb-lg path-block">
<div class="row no-wrap items-center q-mb-lg app-title">
<q-icon name="eva-layers"></q-icon>
<div class="app-title-label">HTTP Middlewares</div>
<div class="app-title-label">{{ middlewareType }}</div>
</div>
<div class="row items-start q-col-gutter-lg">
<div class="col-12 col-md-8">
@ -187,6 +187,9 @@ export default {
hasTLSConfiguration () {
return this.routerByName.item.tls
},
middlewareType () {
return this.$route.meta.protocol.toUpperCase() + ' Middlewares'
},
routerType () {
return this.$route.meta.protocol.toUpperCase() + ' Router'
},