[REM] *: drop o_debounce_disabled class in favor of bootstrap defaults

Part of the overall v16 SCSS optimization/restyle, task-2704984.

task-2918463

Part-of: odoo/odoo#97051
This commit is contained in:
stefanorigano (SRI)
2022-08-04 13:54:15 +02:00
committed by Pierre Paridans
parent 71611ff3c0
commit b89296c12b
5 changed files with 5 additions and 10 deletions
@@ -17,7 +17,7 @@ const ProjectPrivateTask = FieldMany2One.extend({
if (!this.m2o_value) {
this.$el.empty();
this.$el.append(QWeb.render('project.task.PrivateProjectName'));
this.$el.addClass('o_debounce_disabled');
this.$el.addClass('pe-none');
}
},
});
+2 -2
View File
@@ -355,9 +355,9 @@ var dom = {
// or at least for the duration of the click debounce. This makes
// a 'real' debounce creation useless. Also, during the debouncing
// part, the button is disabled without any visual effect.
$button.addClass('o_debounce_disabled');
$button.addClass('pe-none');
Promise.resolve(dom.DEBOUNCE && concurrency.delay(dom.DEBOUNCE)).then(function () {
$button.removeClass('o_debounce_disabled');
$button.removeClass('pe-none');
const restore = dom.addButtonLoadingEffect($button[0]);
return Promise.resolve(result).then(restore).guardedCatch(restore);
});
@@ -133,11 +133,6 @@
}
}
// Declare a similar class as 'disabled' but with no visual effect
.o_debounce_disabled {
pointer-events: none;
}
span.o_force_ltr {
display: inline;
}
@@ -556,7 +556,7 @@ export class GraphRenderer extends Component {
}
const viewContentTop = this.rootRef.el.getBoundingClientRect().top;
const legendTooltip = Object.assign(document.createElement("div"), {
className: "o_tooltip_legend popover p-3 o_debounce_disabled",
className: "o_tooltip_legend popover p-3 pe-none",
innerText: fullText,
});
legendTooltip.style.top = `${ev.clientY - viewContentTop}px`;
@@ -2,7 +2,7 @@
<templates xml:space="preserve">
<t t-name="web.GraphRenderer.CustomTooltip" owl="1">
<div class="o_graph_custom_tooltip popover show p-2 o_debounce_disabled mw-100">
<div class="o_graph_custom_tooltip popover show p-2 pe-none mw-100">
<table class="table table-borderless table-sm overflow-hidden m-0">
<thead>
<tr>