| 1 |
import { KanbanRenderer } from '@web/views/kanban/kanban_renderer'; |
| 2 |
import { TimeOffDashboard } from '../../dashboard/time_off_dashboard'; |
| 3 |
|
| 4 |
export class TimeOffKanbanRenderer extends KanbanRenderer { |
| 5 |
static template = "hr_holidays.KanbanRenderer"; |
| 6 |
static components = { |
| 7 |
...TimeOffKanbanRenderer.components, |
| 8 |
TimeOffDashboard, |
| 9 |
}; |
| 10 |
get employeeId() { |
| 11 |
return this.env.model.config.context.active_id || null; |
| 12 |
} |
| 13 |
|
| 14 |
get showDashboard() { |
| 15 |
return this.env.model.config.context.show_dashboard || false; |
| 16 |
} |
| 17 |
} |