chnages
This commit is contained in:
33
fusion_helpdesk/static/src/js/fusion_helpdesk_systray.js
Normal file
33
fusion_helpdesk/static/src/js/fusion_helpdesk_systray.js
Normal file
@@ -0,0 +1,33 @@
|
||||
/** @odoo-module **/
|
||||
// Fusion Helpdesk — top systray icon. Sequence chosen so the icon
|
||||
// appears to the LEFT of the attendance check-in button. Odoo
|
||||
// systray ordering is by sequence ascending (lower = leftmost in the
|
||||
// systray bar). hr_attendance ships at sequence 100, so we use 99.
|
||||
|
||||
import { Component } from "@odoo/owl";
|
||||
import { registry } from "@web/core/registry";
|
||||
import { useService } from "@web/core/utils/hooks";
|
||||
import { FusionHelpdeskDialog } from "./fusion_helpdesk_dialog";
|
||||
|
||||
class FusionHelpdeskSystray extends Component {
|
||||
static template = "fusion_helpdesk.SystrayItem";
|
||||
static props = {};
|
||||
|
||||
setup() {
|
||||
this.dialog = useService("dialog");
|
||||
}
|
||||
|
||||
onClick() {
|
||||
this.dialog.add(FusionHelpdeskDialog, {});
|
||||
}
|
||||
}
|
||||
|
||||
export const fusionHelpdeskSystrayItem = {
|
||||
Component: FusionHelpdeskSystray,
|
||||
};
|
||||
|
||||
registry
|
||||
.category("systray")
|
||||
.add("fusion_helpdesk.report_button", fusionHelpdeskSystrayItem, {
|
||||
sequence: 99,
|
||||
});
|
||||
Reference in New Issue
Block a user