Skip to content

Commit

Permalink
[MIG] web_dialog_size: Migration to 18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromeguerriat-msf committed Feb 6, 2025
1 parent f3a6021 commit 4403ef9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion web_dialog_size/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"Odoo Community Association (OCA)",
"website": "https://github.com/OCA/web",
"category": "web",
"version": "17.0.1.0.0",
"version": "18.0.1.0.0",
"license": "AGPL-3",
"depends": ["web"],
"installable": True,
Expand Down
6 changes: 2 additions & 4 deletions web_dialog_size/static/src/js/web_dialog_size.esm.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/** @odoo-module **/

import {ActionDialog} from "@web/webclient/actions/action_dialog";
import {Component, onMounted} from "@odoo/owl";
import {ActionDialog} from "@web/webclient/actions/action_dialog";
import {Dialog} from "@web/core/dialog/dialog";
import {SelectCreateDialog} from "@web/views/view_dialogs/select_create_dialog";
import {patch} from "@web/core/utils/patch";
Expand All @@ -19,7 +17,7 @@ export class ExpandButton extends Component {
onMounted(() => {
var self = this;
this.config.then(function (r) {
if (r.default_maximize && stop) {
if (r.default_maximize) {
self.dialog_button_extend();
}
});
Expand Down
4 changes: 2 additions & 2 deletions web_dialog_size/static/src/xml/ExpandButton.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
class="btn btn-secondary dialog_button_extend"
t-on-click="dialog_button_restore"
>
<i class="fa fa-compress" />
<i class="fa fa-window-restore" />
</button>
<button
t-if="props.getsize() != 'dialog_full_screen'"
type="button"
class="btn btn-secondary dialog_button_restore"
t-on-click="dialog_button_extend"
>
<i class="fa fa-expand" />
<i class="fa fa-window-maximize" />
</button>
</t>
</templates>

0 comments on commit 4403ef9

Please sign in to comment.