Fix enable/disable button. Hide demo button
This commit is contained in:
parent
b4f07cfc1c
commit
8ce4fc9c6d
@ -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";
|
||||
}
|
||||
});
|
||||
});
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user