Cleaner workout done indication
This commit is contained in:
parent
6cfce18819
commit
fb4acf962f
@ -7,6 +7,7 @@ constructor(cont, plan) {
|
||||
cont.appendChild(wo_cont);
|
||||
|
||||
// Inputs to the class. Workout plan and container to display it in
|
||||
this.arena = cont;
|
||||
this.container = wo_cont;
|
||||
this.plan = plan;
|
||||
|
||||
@ -261,7 +262,7 @@ update_active_item() {
|
||||
const wo_done_txt = this.text_element("div", "Workout done!");
|
||||
wo_done_txt.classList.add("workout-done-txt");
|
||||
wo_done.appendChild(wo_done_txt);
|
||||
this.container.appendChild(wo_done);
|
||||
this.arena.appendChild(wo_done);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user