mirror of
https://github.com/lus/pasty.git
synced 2023-08-10 21:13:09 +03:00
Show a notification on encryption toggle
This commit is contained in:
@@ -367,6 +367,7 @@ function setupButtonFunctionality() {
|
||||
BUTTON_TOGGLE_ENCRYPTION_ELEMENT.addEventListener("click", () => {
|
||||
const active = BUTTON_TOGGLE_ENCRYPTION_ELEMENT.classList.toggle("active");
|
||||
localStorage.setItem("encryption", active);
|
||||
Notifications.success((active ? "Enabled" : "Disabled") + " automatic paste encryption.");
|
||||
});
|
||||
|
||||
BUTTON_REPORT_ELEMENT.addEventListener("click", async () => {
|
||||
|
||||
Reference in New Issue
Block a user