Commit 1a33a43a authored by NGPixel's avatar NGPixel

fix: use semver for latest version check

parent 7508d92f
......@@ -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: {
......@@ -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')
......
......@@ -14,7 +14,6 @@ module.exports = {
tabContent += $.html(celm)
$(celm).remove()
})
console.info(tabContent)
tabContents.push(`<div class="tabset-panel">${tabContent}</div>`)
$(hd).remove()
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment