fix: dashboard invalid version on load
This commit is contained in:
parent
155449f8ea
commit
deacd80c45
@ -135,7 +135,11 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
isLatestVersion() {
|
isLatestVersion() {
|
||||||
return semverLte(this.info.latestVersion, this.info.currentVersion)
|
if (this.info.latestVersion === 'n/a' || this.info.currentVersion === 'n/a') {
|
||||||
|
return true
|
||||||
|
} else {
|
||||||
|
return semverLte(this.info.latestVersion, this.info.currentVersion)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
info: get('admin/info'),
|
info: get('admin/info'),
|
||||||
permissions: get('user/permissions')
|
permissions: get('user/permissions')
|
||||||
|
@ -53,6 +53,10 @@ defaults:
|
|||||||
theme: 'default'
|
theme: 'default'
|
||||||
iconset: 'md'
|
iconset: 'md'
|
||||||
darkMode: false
|
darkMode: false
|
||||||
|
features:
|
||||||
|
featurePageRatings: true
|
||||||
|
featurePageComments: true
|
||||||
|
featurePersonalWikis: true
|
||||||
security:
|
security:
|
||||||
securityOpenRedirect: true
|
securityOpenRedirect: true
|
||||||
securityIframe: true
|
securityIframe: true
|
||||||
|
Loading…
Reference in New Issue
Block a user