mirror of
https://github.com/komodorio/helm-dashboard.git
synced 2026-03-24 11:48:04 +00:00
Add version information into UI (#35)
This commit adds the tool version into the UI in the top bar.
This commit is contained in:
@@ -21,6 +21,12 @@ $(function () {
|
||||
$("#upgradeModal .btn-scan").hide()
|
||||
}
|
||||
})
|
||||
|
||||
$.get("/status").fail(function (xhr) {
|
||||
reportError("Failed to get tool version", xhr)
|
||||
}).done(function (data) {
|
||||
fillToolVersion(data)
|
||||
})
|
||||
})
|
||||
|
||||
function initView() {
|
||||
@@ -195,4 +201,8 @@ function isNewerVersion(oldVer, newVer) {
|
||||
if (a < b) return false
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
function fillToolVersion(data) {
|
||||
$("#toolVersion").append($('<a>' + data + '</a>'))
|
||||
}
|
||||
Reference in New Issue
Block a user