From 915b172897db4ee2adca2591cec842f67f567648 Mon Sep 17 00:00:00 2001 From: Worly Date: Thu, 16 May 2024 19:18:52 +0200 Subject: [PATCH] feat: configurable behaviour of tracking button on /choresoverview --- changelog/76_UNRELEASED_xxxx-xx-xx.md | 2 +- config-dist.php | 1 + views/choresoverview.blade.php | 21 +++++++++++++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/changelog/76_UNRELEASED_xxxx-xx-xx.md b/changelog/76_UNRELEASED_xxxx-xx-xx.md index 1d062727..63ac1329 100644 --- a/changelog/76_UNRELEASED_xxxx-xx-xx.md +++ b/changelog/76_UNRELEASED_xxxx-xx-xx.md @@ -30,7 +30,7 @@ ### Chores -- xxx +- There is now a new sub feature flag `FEATURE_FLAG_CHORES_OVERVIEW_DEFAULT_TRACK_ON_NEXT_SCHEDULE` to change the behaviour of the green button on `/choresoverview`. If set to true, the green button will track an execution of the corresponding chore on the next scheduled time. If set to false it will instead track an execution for now/today. (Flag defaults to `true`, so no changed behavior when not configured) ### Calendar diff --git a/config-dist.php b/config-dist.php index 79475979..097b92f4 100644 --- a/config-dist.php +++ b/config-dist.php @@ -148,6 +148,7 @@ Setting('FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_FIELD_NUMBER_PAD', true); // Activa Setting('FEATURE_FLAG_SHOPPINGLIST_MULTIPLE_LISTS', true); Setting('FEATURE_FLAG_RECIPES_MEALPLAN', true); Setting('FEATURE_FLAG_CHORES_ASSIGNMENTS', true); +Setting('FEATURE_FLAG_CHORES_OVERVIEW_DEFAULT_TRACK_ON_NEXT_SCHEDULE', true) Setting('FEATURE_FLAG_THERMAL_PRINTER', false); // Feature settings diff --git a/views/choresoverview.blade.php b/views/choresoverview.blade.php index 0d498680..ab132e13 100644 --- a/views/choresoverview.blade.php +++ b/views/choresoverview.blade.php @@ -136,6 +136,7 @@ + @if(GROCY_FEATURE_FLAG_CHORES_OVERVIEW_DEFAULT_TRACK_ON_NEXT_SCHEDULE) + @else + + + + @endif