Fix enable/disable button. Hide demo button

This commit is contained in:
jude 2023-07-23 12:16:09 +01:00
parent b4f07cfc1c
commit 8ce4fc9c6d
2 changed files with 6 additions and 6 deletions

View File

@ -496,9 +496,9 @@ document.addEventListener("remindersLoaded", (event) => {
if (data.error) {
show_error(data.error);
} else {
enableBtn.dataset["action"] = data["enabled"]
? "enable"
: "disable";
enableBtn.dataset["action"] = data.reminder["enabled"]
? "disable"
: "enable";
}
});
});

View File

@ -251,9 +251,9 @@
<button class="button is-danger delete-reminder">
Delete
</button>
<button class="button is-info demo-reminder">
Demo
</button>
<!-- <button class="button is-info demo-reminder">-->
<!-- Demo-->
<!-- </button>-->
{% endif %}
</div>
</div>