diff --git a/app/dashboard/templates/dashboard/index.html b/app/dashboard/templates/dashboard/index.html index b08bd51d..a388e2fe 100644 --- a/app/dashboard/templates/dashboard/index.html +++ b/app/dashboard/templates/dashboard/index.html @@ -115,8 +115,10 @@ {% endif %} style="padding-left: 0px" > + + @@ -143,6 +145,8 @@
+ + Delete    @@ -248,9 +252,10 @@ $(".delete-email").on("click", function (e) { + let alias = $(this).parent().find(".alias").val(); notie.confirm({ - text: "Once an alias is deleted, people/apps " + - "who used to contact you via this email address cannot reach you any more," + + text: `Once ${alias} is deleted, people/apps ` + + "who used to contact you via this alias cannot reach you any more," + " please confirm.", cancelCallback: () => { // nothing to do @@ -276,11 +281,12 @@ $(".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 this alias, please confirm.`; + message = `After this, you will start receiving email sent to ${alias}, please confirm.`; } else { - message = `After this, you will stop receiving email sent to this alias, please confirm.`; + message = `After this, you will stop receiving email sent to ${alias}, please confirm.`; } notie.confirm({