Quickly access yearly view for given room#220
Conversation
Make room numbers hyperlinks in the list overview
|
@developeregrem I wanted to say thanks for your great application with a small feature that I am thinking about since some time. I find it useful, but if it doesn't fit in the app filosophy I'll understand 🙂 |
|
Wow, that's really good. I can't believe I didn't think of that myself. I find it very useful. I'll take a look at the code later. |
| this.getLocalTableSetting('holidayCountry', 'reservations-table-holidaycountry'); | ||
| this.getLocalTableSetting('apartment', 'reservations-apartment', 'int'); | ||
| // Use stored apartment filter only if not explicitly set in URL | ||
| const isExplicitYearlyApartmentLink = /\/view\/yearly\/\d+$/.test(window.location.pathname); |
There was a problem hiding this comment.
The only thing I would change is to not have a hard coded url path here. If you change the url in ReservationServiceController some will forget this place here probably.
Maybe you can pass a variable to twig in the ReservationServiceController, if direct access is detected and set a data-* attribut on the select element which is checked in the stimulus controller?
Make room numbers hyperlinks in the list overview
Screencast_20260511_054454.webm