Skip to content

Commit

Permalink
add a history option in exercise card menu
Browse files Browse the repository at this point in the history
  • Loading branch information
WhyAsh5114 committed Aug 4, 2024
1 parent 7532eb0 commit 81e656a
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import EditIcon from 'virtual:icons/lucide/pencil';
import SkipIcon from 'virtual:icons/lucide/skip-forward';
import DeleteIcon from 'virtual:icons/lucide/trash';
import HistoryIcon from 'virtual:icons/lucide/history';
import { workoutRunes } from '../../workoutRunes.svelte';
import CompareComponent from './CompareComponent.svelte';
import SetsComponent from './SetsComponent.svelte';
Expand All @@ -29,6 +30,7 @@
comparing = false,
exercise = $bindable()
}: PropsType = $props();
let isContextMenuOpen = $state(false);
function skipSetsLeft() {
Expand Down Expand Up @@ -67,6 +69,12 @@
<DropdownMenu.Item class="gap-2" onclick={skipSetsLeft}>
<SkipIcon /> Skip sets left
</DropdownMenu.Item>
<DropdownMenu.Item
class="gap-2"
onclick={() => workoutRunes.openExerciseHistorySheet(exercise.name)}
>
<HistoryIcon /> History
</DropdownMenu.Item>
<DropdownMenu.Item
class="gap-2 text-red-500"
onclick={() => {
Expand Down

0 comments on commit 81e656a

Please sign in to comment.