mirror of
https://github.com/rickbarrette/redmine_qbo_calendar.git
synced 2026-11-17 21:50:37 -05:00
Keep calendar toggles per user; bring back New Customer on appointments
- Hide Past Weeks and Show Customer Appointments Only are saved in each user's preferences instead of the session, so they stick across logins and devices. Show Customer Appointments Only is on by default. - The new appointment form's New Customer button had no icon since Redmine 6's SVG icons, so it didn't show. It has its icon and label again, for users who may add customers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
be9bd1bac6
commit
f09c4caf9a
3 files changed
+40
-10
No files matched your search
@@ -1,7 +1,7 @@
|
||||
<%= javascript_include_tag("calendar", plugin: :redmine_qbo_calendar) %>
|
||||
|
||||
<%
|
||||
# Toggles: kept in the session by CalendarsControllerPatch, so month links keep them
|
||||
# Toggles: each user's own, kept in their preferences by CalendarsControllerPatch (always in params here)
|
||||
only_appointments = params[:only_appointments] == '1'
|
||||
hide_past_weeks = params[:hide_past_weeks] == '1'
|
||||
|
||||
|
||||
Reference in new issue
Block a user