[REF] web: home menu template event names to kebab

Changed the event names to comply to Owl standards.
This commit is contained in:
Julien Mougenot
2020-01-15 11:31:17 +00:00
parent 65c9945bd8
commit c146af8a6d
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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>`;