From ae6f5e888475a608d8857903e40306a2cfeb1db9 Mon Sep 17 00:00:00 2001 From: HumanoidSandvichDispenser Date: Sun, 10 Nov 2024 02:46:16 -0800 Subject: [PATCH] Add button to copy last week's availability --- .../src/components/WeekSelectionBox.vue | 6 +++--- availabili.tf/src/views/ScheduleView.vue | 19 ++++++++++++++++--- 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/availabili.tf/src/components/WeekSelectionBox.vue b/availabili.tf/src/components/WeekSelectionBox.vue index bcb49fd..d4a0269 100644 --- a/availabili.tf/src/components/WeekSelectionBox.vue +++ b/availabili.tf/src/components/WeekSelectionBox.vue @@ -11,7 +11,7 @@ const dateStart = computed(() => model.value.format("L")); const dateEnd = computed(() => model.value.clone().add(6, "days").format("L")); function incrementDate(delta: number) { - model.value = model.value.clone().add(delta, "days"); + model.value = model.value.clone().add(delta, "weeks"); //let newDate = new Date(model.value); //newDate.setDate(newDate.getDate() + delta); //model.value = newDate; @@ -20,11 +20,11 @@ function incrementDate(delta: number) { - +