[REF] web: home menu template event names to kebab
Changed the event names to comply to Owl standards.
This commit is contained in:
@@ -101,7 +101,7 @@ odoo.define('web.OwlDialog', function (require) {
|
||||
* @private
|
||||
*/
|
||||
_close() {
|
||||
this.trigger('dialog_closed');
|
||||
this.trigger('dialog-closed');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -153,7 +153,7 @@ odoo.define('web.OwlDialog', function (require) {
|
||||
$(this.mainButton)
|
||||
.tooltip({
|
||||
delay: { show: 200, hide: 0 },
|
||||
title: () => this.env.qweb.render('DialogButton.tooltip', {
|
||||
title: () => this.env.qweb.renderToString('DialogButton.tooltip', {
|
||||
title: this.mainButton.innerText.toUpperCase(),
|
||||
}),
|
||||
trigger: 'manual',
|
||||
|
||||
@@ -50,7 +50,7 @@ odoo.define('web.owl_dialog_tests', function (require) {
|
||||
subtitle="state.subtitle"
|
||||
technical="state.technical"
|
||||
title="state.title"
|
||||
t-on-dialog_closed="_onDialogClosed"
|
||||
t-on-dialog-closed="_onDialogClosed"
|
||||
>
|
||||
<SubComponent text="state.textContent"/>
|
||||
<t t-set="buttons">
|
||||
@@ -169,7 +169,7 @@ odoo.define('web.owl_dialog_tests', function (require) {
|
||||
<div>
|
||||
<Dialog t-foreach="dialogIds" t-as="dialogId" t-key="dialogId"
|
||||
contentClass="'dialog_' + dialogId"
|
||||
t-on-dialog_closed="_onDialogClosed(dialogId)"
|
||||
t-on-dialog-closed="_onDialogClosed(dialogId)"
|
||||
/>
|
||||
</div>`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user