diff --git a/apprise_api/api/templates/base.html b/apprise_api/api/templates/base.html
index 3063f6c..29f7d5a 100644
--- a/apprise_api/api/templates/base.html
+++ b/apprise_api/api/templates/base.html
@@ -12,6 +12,7 @@
+
{% block title %}{% trans "Apprise API" %}{% endblock %}
diff --git a/apprise_api/api/templates/config.html b/apprise_api/api/templates/config.html
index 7bb72c4..f1c818f 100644
--- a/apprise_api/api/templates/config.html
+++ b/apprise_api/api/templates/config.html
@@ -140,6 +140,18 @@ document.querySelector('#addurl').onsubmit = function(event) {
// reset our form
form.reset();
+
+ Swal.fire(
+ 'Save',
+ 'Successfully saved the specified URL(s).',
+ 'success'
+ );
+ } else {
+ Swal.fire(
+ 'Save',
+ 'Failed to save the specified URL(s).',
+ 'error'
+ );
}
});
return false;
@@ -160,6 +172,20 @@ document.querySelector('#addconfig').onsubmit = function(event) {
{
// update our settings
update();
+
+ // user notification
+ Swal.fire(
+ 'Save',
+ 'Successfully saved the specified URL(s).',
+ 'success'
+ );
+ } else {
+ // user notification
+ Swal.fire(
+ 'Save',
+ 'Failed to save the specified URL(s).',
+ 'error'
+ );
}
});
return false;
@@ -178,8 +204,19 @@ document.querySelector('#donotify').onsubmit = function(event) {
}).then(function(response) {
if(response.status == 200)
{
- // update our settings
- alert('Notification Sent');
+ // user notification
+ Swal.fire(
+ 'Notification',
+ 'Successfully sent the notification(s).',
+ 'success'
+ );
+ } else {
+ // user notification
+ Swal.fire(
+ 'Notification',
+ 'Failed to send the notification(s).',
+ 'error'
+ );
}
});
return false;
diff --git a/apprise_api/static/js/sweetalert2.all.min.js b/apprise_api/static/js/sweetalert2.all.min.js
new file mode 100644
index 0000000..5446a6f
--- /dev/null
+++ b/apprise_api/static/js/sweetalert2.all.min.js
@@ -0,0 +1,2 @@
+!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Sweetalert2=e()}(this,function(){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n