Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wiki-js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
wiki-js
Commits
1a33a43a
Commit
1a33a43a
authored
May 11, 2020
by
NGPixel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: use semver for latest version check
parent
7508d92f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
admin-dashboard.vue
client/components/admin/admin-dashboard.vue
+2
-1
renderer.js
server/modules/rendering/html-tabset/renderer.js
+0
-1
No files found.
client/components/admin/admin-dashboard.vue
View file @
1a33a43a
...
...
@@ -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'
)
...
...
server/modules/rendering/html-tabset/renderer.js
View file @
1a33a43a
...
...
@@ -14,7 +14,6 @@ module.exports = {
tabContent
+=
$
.
html
(
celm
)
$
(
celm
).
remove
()
})
console
.
info
(
tabContent
)
tabContents
.
push
(
`<div class="tabset-panel">
${
tabContent
}
</div>`
)
$
(
hd
).
remove
()
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment