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:
parent
f931627c77
commit
b11d4eb478
@ -303,6 +303,7 @@ html, body {
|
||||
padding: 0;
|
||||
}
|
||||
.container #notifications div {
|
||||
margin: 0;
|
||||
border-radius: 0;
|
||||
width: 100vw;
|
||||
-webkit-box-sizing: border-box;
|
||||
|
File diff suppressed because one or more lines are too long
@ -250,6 +250,7 @@ html, body {
|
||||
.container #notifications {
|
||||
padding: 0;
|
||||
& div {
|
||||
margin: 0;
|
||||
border-radius: 0;
|
||||
width: 100vw;
|
||||
box-sizing: border-box;
|
||||
|
@ -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 () => {
|
||||
|
Loading…
Reference in New Issue
Block a user