From 45f0fe4bbe3d8fcee91f9071a84eabcce68f1cd2 Mon Sep 17 00:00:00 2001 From: Andreas Waschinski Date: Wed, 24 Feb 2021 17:47:39 +0100 Subject: [PATCH] Fixes #183 Disabling save button when dateDif is negative, replacing non-functional invisible button(?) with proper spacing --- frontend/src/components/MealPlan/MealPlanNew.vue | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/MealPlan/MealPlanNew.vue b/frontend/src/components/MealPlan/MealPlanNew.vue index 8eaaa4389..c5ec0d8b7 100644 --- a/frontend/src/components/MealPlan/MealPlanNew.vue +++ b/frontend/src/components/MealPlan/MealPlanNew.vue @@ -69,16 +69,14 @@ - - + + {{ $t("general.random") }} - + {{ $t("general.save") }} - - @@ -136,7 +134,7 @@ export default { let dateDif = (endDate - startDate) / (1000 * 3600 * 24) + 1; - if (dateDif <= 1) { + if (dateDif < 1) { return null; }