From deacd80c45d224fb453c18fdbea2b152d0c0c9b8 Mon Sep 17 00:00:00 2001 From: NGPixel Date: Fri, 5 Jun 2020 14:46:47 -0400 Subject: [PATCH] fix: dashboard invalid version on load --- client/components/admin/admin-dashboard.vue | 6 +++++- server/app/data.yml | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/client/components/admin/admin-dashboard.vue b/client/components/admin/admin-dashboard.vue index 6d6331b2..9dfa9a97 100644 --- a/client/components/admin/admin-dashboard.vue +++ b/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') diff --git a/server/app/data.yml b/server/app/data.yml index 0d020f23..91fd243e 100644 --- a/server/app/data.yml +++ b/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