return new version as version
This commit is contained in:
parent
4ed0eee032
commit
d72158d78f
2 changed files with 4 additions and 3 deletions
|
@ -199,6 +199,7 @@ def getVersion(data):
|
|||
'''
|
||||
response = {
|
||||
'current': settings.MINOR_VERSION,
|
||||
'version': settings.MINOR_VERSION,
|
||||
'upgrade': False,
|
||||
}
|
||||
if settings.MINOR_VERSION == 'git':
|
||||
|
@ -225,7 +226,7 @@ def getVersion(data):
|
|||
current = current_version('openmedialibrary')
|
||||
response['current'] = current
|
||||
new = release['modules']['openmedialibrary']['version']
|
||||
response['new'] = new
|
||||
response['version'] = new
|
||||
response['update'] = current < new
|
||||
return response
|
||||
actions.register(getVersion, cache=False)
|
||||
|
|
|
@ -31,7 +31,7 @@ oml.ui.updateDialog = function() {
|
|||
.html(
|
||||
oml.version != 'git'
|
||||
? Ox._(
|
||||
'You are running Open Media Library version {0}.<br><br>',
|
||||
'You are running Open Media Library version<br>{0}.<br><br>',
|
||||
[oml.version]
|
||||
)
|
||||
: Ox._(
|
||||
|
|
Loading…
Reference in a new issue