Browse Source

fix: dashboard invalid version on load

pull/2012/head
NGPixel 4 years ago
parent
commit
deacd80c45
2 changed files with 9 additions and 1 deletions
  1. 6
      client/components/admin/admin-dashboard.vue
  2. 4
      server/app/data.yml

6
client/components/admin/admin-dashboard.vue

@ -135,7 +135,11 @@ export default {
},
computed: {
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'),
permissions: get('user/permissions')

4
server/app/data.yml

@ -53,6 +53,10 @@ defaults:
theme: 'default'
iconset: 'md'
darkMode: false
features:
featurePageRatings: true
featurePageComments: true
featurePersonalWikis: true
security:
securityOpenRedirect: true
securityIframe: true

Loading…
Cancel
Save