Parcourir la source

Create button on workout menu to view workout history.

Lee Morgan il y a 1 an
Parent
commit
8cf07c4187
3 fichiers modifiés avec 7 ajouts et 0 suppressions
  1. 1 0
      .gitignore
  2. 0 0
      build.html
  3. 6 0
      views/js/pages/workoutMenu.js

+ 1 - 0
.gitignore

@@ -2,3 +2,4 @@ node_modules/
 views/build/
 *.swp
 *.swo
+build.html

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
build.html


+ 6 - 0
views/js/pages/workoutMenu.js

@@ -25,6 +25,12 @@ export default {
         });
         container.appendChild(start);
 
+        const history = document.createElement("button");
+        history.classList.add("button");
+        history.textContent = "Workout History";
+        history.addEventListener("click", ()=>{changePage("sessionHistory", workout)});
+        container.appendChild(history);
+
         const edit = document.createElement("button");
         edit.classList.add("button");
         edit.textContent = "Edit Workout";

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff