/** @odoo-module */ import { Component, xml } from "@odoo/owl"; import { Job } from "../core/job"; import { Test } from "../core/test"; import { HootLink } from "./hoot_link"; /** * @typedef {{ * hidden?: boolean; * job: Job; * }} HootJobButtonsProps */ /** @extends {Component} */ export class HootJobButtons extends Component { static components = { HootLink }; static props = { hidden: { type: Boolean, optional: true }, job: Job, }; static template = xml`
`; getType() { return this.props.job instanceof Test ? "test" : "suite"; } }