Skip to content

Commit

Permalink
fix: use semver for latest version check
Browse files Browse the repository at this point in the history
  • Loading branch information
NGPixel committed May 11, 2020
1 parent 7508d92 commit 1a33a43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion client/components/admin/admin-dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ import _ from 'lodash'
import AnimatedNumber from 'animated-number-vue'
import { get } from 'vuex-pathify'
import gql from 'graphql-tag'
import semverLte from 'semver/functions/lte'
export default {
components: {
Expand All @@ -134,7 +135,7 @@ export default {
},
computed: {
isLatestVersion() {
return this.info.currentVersion === this.info.latestVersion
return semverLte(this.info.latestVersion, this.info.currentVersion)
},
info: get('admin/info'),
permissions: get('user/permissions')
Expand Down
1 change: 0 additions & 1 deletion server/modules/rendering/html-tabset/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ module.exports = {
tabContent += $.html(celm)
$(celm).remove()
})
console.info(tabContent)
tabContents.push(`<div class="tabset-panel">${tabContent}</div>`)
$(hd).remove()
})
Expand Down

0 comments on commit 1a33a43

Please sign in to comment.