mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 01:32:38 +00:00
Reload calendar after color config changed (references #2368)
This commit is contained in:
parent
80d7284d72
commit
dc05476d09
@ -65,3 +65,8 @@ $("#configure-colors-button").on("click", function(e)
|
||||
|
||||
$("#configure-colors-modal").modal("show");
|
||||
});
|
||||
|
||||
$("#configure-colors-modal").on("hidden.bs.modal", function(e)
|
||||
{
|
||||
window.location.href = U('/calendar');
|
||||
})
|
||||
|
@ -162,7 +162,8 @@ class CalendarService extends BaseService
|
||||
'title' => $titlePrefix . $titlePrefix2 . $mealPlanDayNote->note,
|
||||
'start' => $start,
|
||||
'date_format' => $dateFormat,
|
||||
'link' => $this->UrlManager->ConstructUrl('/mealplan' . '?start=' . $start)
|
||||
'link' => $this->UrlManager->ConstructUrl('/mealplan' . '?start=' . $start),
|
||||
'color' => $usersService->GetUserSettings(GROCY_USER_ID)['calendar_color_meal_plan']
|
||||
];
|
||||
}
|
||||
|
||||
@ -190,7 +191,8 @@ class CalendarService extends BaseService
|
||||
'title' => $titlePrefix . $titlePrefix2 . FindObjectInArrayByPropertyValue($products, 'id', $mealPlanDayProduct->product_id)->name,
|
||||
'start' => $start,
|
||||
'date_format' => $dateFormat,
|
||||
'link' => $this->UrlManager->ConstructUrl('/mealplan' . '?start=' . $start)
|
||||
'link' => $this->UrlManager->ConstructUrl('/mealplan' . '?start=' . $start),
|
||||
'color' => $usersService->GetUserSettings(GROCY_USER_ID)['calendar_color_meal_plan']
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user