diff --git a/app/dashboard/templates/dashboard/index.html b/app/dashboard/templates/dashboard/index.html index dd8b36b4..8c1f215b 100644 --- a/app/dashboard/templates/dashboard/index.html +++ b/app/dashboard/templates/dashboard/index.html @@ -379,26 +379,7 @@ }); $(".custom-switch-input").change(function (e) { - var message = ""; - let alias = $(this).parent().find(".alias").val(); - - if (e.target.checked) { - message = `After this, you will start receiving email sent to ${alias}, please confirm.`; - } else { - message = `After this, you will stop receiving email sent to ${alias}, please confirm.`; - } - - notie.confirm({ - text: message, - cancelCallback: () => { - // reset to the original value - var oldValue = !$(this).prop("checked"); - $(this).prop("checked", oldValue); - }, - submitCallback: () => { - $(this).closest("form").submit(); - } - }); + $(this).closest("form").submit(); }) {% endblock %}