Update reset message to show release version

This commit is contained in:
JonnyWong16 2020-03-06 15:39:15 -08:00
parent 823c9b3159
commit 097203162d
2 changed files with 5 additions and 3 deletions

View file

@ -268,7 +268,7 @@
<div class="form-group advanced-setting">
<label>Repair Git Install</label>
<p class="help-block">
Attempt to fix updating by resetting your Tautulli installation to the latest "${config['git_remote']}/${config['git_branch']}" branch.<br />
Attempt to fix updating by resetting your Tautulli installation back to <strong>${common.RELEASE}</strong>.<br />
Note: This will not affect any saved history data or settings.
</p>
<div class="row">
@ -2169,7 +2169,8 @@ $(document).ready(function() {
});
$("#reset_git_install").click(function () {
var msg = 'Are you sure you want to reset your Tautulli installtion?<br /><br />Tautulli will restart.';
var msg = 'Are you sure you want to reset your Tautulli installtion back to <strong>${common.RELEASE}</strong>?' +
'<br /><br />Tautulli will restart.';
$('#confirm-message').html(msg);
$('#confirm-modal').modal();
$('#confirm-modal').one('click', '#confirm-button', function () {

View file

@ -3922,7 +3922,8 @@ class WebInterface(object):
@cherrypy.expose
@requireAuth(member_of("admin"))
def reset_git_install(self, **kwargs):
return self.do_state_change('reset', 'Resetting Git Install', 120)
return self.do_state_change('reset', 'Resetting to {}'.format(common.RELEASE), 120)
@cherrypy.expose
@requireAuth(member_of("admin"))