mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
@@ -94,7 +94,9 @@ odoo.define("web_responsive.KanbanRendererMobile", function (require) {
|
|||||||
this._super.apply(this, arguments);
|
this._super.apply(this, arguments);
|
||||||
core.bus.on("UI_CONTEXT:IS_SMALL_CHANGED", this, () => {
|
core.bus.on("UI_CONTEXT:IS_SMALL_CHANGED", this, () => {
|
||||||
this.widgets = [];
|
this.widgets = [];
|
||||||
this.columnOptions.recordsDraggable = !config.device.isMobile;
|
this.columnOptions.recordsDraggable =
|
||||||
|
!config.device.isMobile &&
|
||||||
|
this.columnOptions.originRecordsDraggable;
|
||||||
this._renderView();
|
this._renderView();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -176,7 +178,10 @@ odoo.define("web_responsive.KanbanRendererMobile", function (require) {
|
|||||||
*/
|
*/
|
||||||
_setState: function () {
|
_setState: function () {
|
||||||
const res = this._super.apply(this, arguments);
|
const res = this._super.apply(this, arguments);
|
||||||
this.columnOptions.recordsDraggable = !config.device.isMobile;
|
this.columnOptions.originRecordsDraggable =
|
||||||
|
this.columnOptions.recordsDraggable;
|
||||||
|
this.columnOptions.recordsDraggable =
|
||||||
|
!config.device.isMobile && this.columnOptions.recordsDraggable;
|
||||||
return res;
|
return res;
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user