[FIX] web: calendar hide weekends feature not showing
After the calendar revamp, a button in the scale selector to hide/show the weekend in the calendar view was not being rendered. This was caused by a wrong rebase that removed the props that were supposed to be passed to the ViewScaleSelector component. This commit fixes this, therefore bringing back the feature. task-3570053 Part-of: odoo/odoo#139736
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
t-on-click.stop="() => this.setDate('next')"
|
||||
><i class="oi oi-arrow-right"/></button>
|
||||
</div>
|
||||
<ViewScaleSelector scales="scales" currentScale="model.scale" isWeekendVisible="weekends" setScale.bind="setScale"/>
|
||||
<ViewScaleSelector scales="scales" currentScale="model.scale" isWeekendVisible="state.isWeekendVisible" setScale.bind="setScale" toggleWeekendVisibility.bind="toggleWeekendVisibility"/>
|
||||
<button
|
||||
class="btn btn-secondary o_calendar_button_today order-2 order-lg-0 ms-auto ms-lg-0"
|
||||
t-att-class="env.isSmall ? 'btn-sm btn-light' : 'btn-secondary'"
|
||||
|
||||
Reference in New Issue
Block a user