Avoid Traefik Pilot iframe code in Traefik webui regarding notifications
This commit is contained in:
parent
cd1f03d4f4
commit
b980c87eff
8 changed files with 143 additions and 198 deletions
|
@ -46,6 +46,7 @@
|
|||
import config from '../../../package'
|
||||
import PlatformAuthState from '../platform/PlatformAuthState'
|
||||
import { mapActions, mapGetters } from 'vuex'
|
||||
import semverRegex from 'semver-regex'
|
||||
|
||||
export default {
|
||||
name: 'NavBar',
|
||||
|
@ -53,7 +54,10 @@ export default {
|
|||
computed: {
|
||||
...mapGetters('core', { coreVersion: 'version' }),
|
||||
version () {
|
||||
return this.coreVersion.Version
|
||||
if (!this.coreVersion.Version) return null
|
||||
return semverRegex().test(this.coreVersion.Version)
|
||||
? this.coreVersion.Version
|
||||
: this.coreVersion.Version.substring(0, 7)
|
||||
},
|
||||
parsedVersion () {
|
||||
if (this.version === undefined) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue