diff --git a/templates/advanced.html b/templates/advanced.html index 8886ac6..e976513 100644 --- a/templates/advanced.html +++ b/templates/advanced.html @@ -5,7 +5,7 @@ {% block body %}

- You can edit your Rhasspy profile directly here as JSON. + You can edit your Rhasspy profile directly here as JSON. Only settings that differ from the defaults are shown.

diff --git a/templates/layout.html b/templates/layout.html index 97404e4..e9906e3 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -343,6 +343,7 @@ // Display an alert message at the bottom of the screen for 20 seconds alert: (message, level) => { + level = (level === undefined) ? 'info' : level; $('#alert').addClass('alert-' + level) $('#alertText').text(message) $('#alert').show() @@ -352,7 +353,7 @@ }, // Hide the alert message - clearAlert: (message, level) => { + clearAlert: () => { $('#alert').removeClass('alert-info') $('#alert').removeClass('alert-danger') $('#alert').removeClass('alert-warning') @@ -409,7 +410,7 @@ restart: () => { return rhasspy.postBusy('Restarting Rhasspy', '/api/restart') .done((r) => { - rhasspy.alert(r.responseText || r); + rhasspy.alert(r.responseText || r, 'success'); rhasspy.init(); }); }, diff --git a/templates/settings.html b/templates/settings.html index 0626907..88a83a4 100644 --- a/templates/settings.html +++ b/templates/settings.html @@ -1810,7 +1810,7 @@
diff --git a/templates/words.html b/templates/words.html index 532d7ea..dde758e 100644 --- a/templates/words.html +++ b/templates/words.html @@ -75,57 +75,58 @@
Custom Words
- - - -