From 0c73a367730d9fb5ace34448d42b8a999cd26bcd Mon Sep 17 00:00:00 2001 From: Son NK Date: Sat, 25 Apr 2020 11:27:44 +0200 Subject: [PATCH] disable/enable the send-email button when alias is enabled/disabled --- app/dashboard/templates/dashboard/index.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/dashboard/templates/dashboard/index.html b/app/dashboard/templates/dashboard/index.html index 53778220..cfe967c2 100644 --- a/app/dashboard/templates/dashboard/index.html +++ b/app/dashboard/templates/dashboard/index.html @@ -407,8 +407,10 @@ if (json.enabled) { toastr.success(`${alias} is enabled`); + $(`#send-email-${aliasId}`).removeClass("disabled"); } else { toastr.success(`${alias} is disabled`); + $(`#send-email-${aliasId}`).addClass("disabled"); } } else { toastr.error("Sorry for the inconvenience! Could you refresh the page & retry please?", "Unknown Error");