You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

16 lines
632 B

/** @odoo-module **/
import { NavBar } from "@web/webclient/navbar/navbar";
import { WebClient } from "@web/webclient/webclient";
import { ControlPanel } from "@web/search/control_panel/control_panel";
import { patch } from "@web/core/utils/patch";
import session from 'web.session';
patch(ControlPanel.prototype, 'backend_theme_infinito_plus/static/src/js/navbar.ControlPanel.js', {
// works when clicking refresh icon
onRefresh(ev) {
this.env.searchModel._notify();
},
// check whether the refresh feature is enabled or disabled
get RefreshOn() {
return session.infinitoRefresh;
},
});