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 = {
|
response = {
|
||||||
'current': settings.MINOR_VERSION,
|
'current': settings.MINOR_VERSION,
|
||||||
|
'version': settings.MINOR_VERSION,
|
||||||
'upgrade': False,
|
'upgrade': False,
|
||||||
}
|
}
|
||||||
if settings.MINOR_VERSION == 'git':
|
if settings.MINOR_VERSION == 'git':
|
||||||
|
@ -225,7 +226,7 @@ def getVersion(data):
|
||||||
current = current_version('openmedialibrary')
|
current = current_version('openmedialibrary')
|
||||||
response['current'] = current
|
response['current'] = current
|
||||||
new = release['modules']['openmedialibrary']['version']
|
new = release['modules']['openmedialibrary']['version']
|
||||||
response['new'] = new
|
response['version'] = new
|
||||||
response['update'] = current < new
|
response['update'] = current < new
|
||||||
return response
|
return response
|
||||||
actions.register(getVersion, cache=False)
|
actions.register(getVersion, cache=False)
|
||||||
|
|
|
@ -31,7 +31,7 @@ oml.ui.updateDialog = function() {
|
||||||
.html(
|
.html(
|
||||||
oml.version != 'git'
|
oml.version != 'git'
|
||||||
? Ox._(
|
? Ox._(
|
||||||
'You are running Open Media Library version {0}.<br><br>',
|
'You are running Open Media Library version<br>{0}.<br><br>',
|
||||||
[oml.version]
|
[oml.version]
|
||||||
)
|
)
|
||||||
: Ox._(
|
: Ox._(
|
||||||
|
|
Loading…
Reference in a new issue