Debian Codegraph @

addons/mail/static/src/js/rotting_mixin/rotting_kanban_controller.js

raw
1 import { patch } from "@web/core/utils/patch";
2 import { KanbanController } from "@web/views/kanban/kanban_controller";
3 import { rottingProgressBarPatch } from "./rotting_progress_bar_hook";
4
5 export class RottingKanbanController extends KanbanController {
6 setup() {
7 super.setup();
8 if (this.progressBarState) {
9 patch(this.progressBarState, rottingProgressBarPatch);
10 }
11 }
12
13 get progressBarAggregateFields() {
14 const res = super.progressBarAggregateFields;
15 if (this.props.fields.is_rotting) {
16 res.push(this.props.fields.is_rotting);
17 }
18 return res;
19 }
20 }