From 4ba88228177dcfac93dc74e375cfa49eda29ad21 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Louis=20V=C3=A9zina?=
<5130500+morpheus65535@users.noreply.github.com>
Date: Mon, 27 Jul 2020 11:14:31 -0400
Subject: [PATCH] Small fixes before releasing v0.9 to master.
---
views/settingsgeneral.html | 2 +-
views/settingsradarr.html | 6 +++++-
views/settingssonarr.html | 6 +++++-
3 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/views/settingsgeneral.html b/views/settingsgeneral.html
index 6e1670b5a..c0dec5b57 100644
--- a/views/settingsgeneral.html
+++ b/views/settingsgeneral.html
@@ -324,7 +324,7 @@
Restart Bazarr
$('#save_button').prop('disabled', true).css('cursor', 'not-allowed');
// Hide update_div if args.no-update
- {% if args.no_update %}
+ {% if args.no_update or args.release_update %}
$('#update_div').hide()
{% endif %}
diff --git a/views/settingsradarr.html b/views/settingsradarr.html
index b6161531f..3a7a359ca 100644
--- a/views/settingsradarr.html
+++ b/views/settingsradarr.html
@@ -371,7 +371,11 @@ Delete Path Mapping
buttons: [{
text: 'Add',
action: function () {
- $('#addModal').modal('show');
+ if (form_changed) {
+ alert('You must save changes before adding a path mapping.')
+ } else {
+ $('#addModal').modal('show');
+ }
}
},
{
diff --git a/views/settingssonarr.html b/views/settingssonarr.html
index 77e0dce06..e7ec5983b 100644
--- a/views/settingssonarr.html
+++ b/views/settingssonarr.html
@@ -394,7 +394,11 @@ Delete Path Mapping
buttons: [{
text: 'Add',
action: function () {
- $('#addModal').modal('show');
+ if (form_changed) {
+ alert('You must save changes before adding a path mapping.')
+ } else {
+ $('#addModal').modal('show');
+ }
}
},
{