Add delete buttons to history page

This commit is contained in:
2020-10-31 00:23:01 +01:00
parent 24f3d69301
commit 68df64d5f9
10 changed files with 93 additions and 35 deletions

View File

@ -20,10 +20,10 @@
// Get the corresponding route to activate/inactivate the category
let url;
if(active) {
url = "/set_category/" + id + "/inactive";
url = "/category/" + id + "/end_session";
cl.remove(toggled_class);
} else {
url = "/set_category/" + id + "/active";
url = "/category/" + id + "/start_session";
cl.add(toggled_class);
}
@ -42,10 +42,6 @@
<body>
<h1 class="title">stl</h1>
{{#each categories}}
<form action="/toggle_category/{{this.0}}" method="post" id="{{this.0}}"></form>
{{/each}}
<ul class="striped_list">
{{#each categories}}
<li class="category_entry">