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.
31 lines
864 B
31 lines
864 B
/** @odoo-module **/
|
|
import { BlockUI } from "@web/core/ui/block_ui";
|
|
|
|
import { patch } from "@web/core/utils/patch";
|
|
import session from 'web.session';
|
|
const { xml } = owl;
|
|
|
|
patch(BlockUI.prototype, "/backend_theme_infinito/static/src/js/loaders.js", {
|
|
setup() {
|
|
this._super();
|
|
this.loaderClass = session.loaderClass;
|
|
},
|
|
});
|
|
|
|
BlockUI.template = xml`
|
|
<div t-att-class="state.blockUI ? 'o_blockUI' : ''">
|
|
<t t-if="state.blockUI">
|
|
<div class="o_spinner">
|
|
<t t-if="loaderClass != 'default'">
|
|
<a href ="#" t-att-class="loaderClass"></a>
|
|
</t>
|
|
<t t-else="">
|
|
<img src="/web/static/img/spin.png" alt="Loading..."/>
|
|
</t>
|
|
</div>
|
|
<div class="o_message">
|
|
<t t-raw="state.line1"/> <br/>
|
|
<t t-raw="state.line2"/>
|
|
</div>
|
|
</t>
|
|
</div>`;
|
|
|