1
0
Fork 0

Avoid Traefik Pilot iframe code in Traefik webui regarding notifications

This commit is contained in:
Matthieu Hostache 2020-09-15 10:26:03 +02:00 committed by GitHub
parent cd1f03d4f4
commit b980c87eff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 143 additions and 198 deletions

View file

@ -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) {