mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[FIX] web_refresher: Define displayRefresher in setup instead of using a getter
Before this changes whe trying to access to a view with the refresher, in mobile view, an error was thrown. As it is not necessary to define the value in a get function, defining the value in the setup solves the problem.
This commit is contained in:
@@ -24,11 +24,8 @@ patch(ControlPanel.prototype, "web_refresher.ControlPanel", {
|
||||
searchModel: this.env.searchModel,
|
||||
pagerProps: this.pagerProps,
|
||||
};
|
||||
},
|
||||
/**
|
||||
* @returns {Boolean}
|
||||
*/
|
||||
get displayRefresher() {
|
||||
return !this.forbiddenSubTypes.includes(this.env.config.viewSubType);
|
||||
this.displayRefresher = !this.forbiddenSubTypes.includes(
|
||||
this.env.config.viewSubType
|
||||
);
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user