|
@@ -12,7 +12,8 @@ openerp.eiru_pos = (instance, local) => {
|
|
|
|
|
|
local.PosWidget = instance.Widget.extend({
|
|
|
start() {
|
|
|
- instance.eiru_theme.instance.hide()
|
|
|
+ this.sidebarFold()
|
|
|
+
|
|
|
this.vm = new Vue({
|
|
|
store,
|
|
|
el: this.el,
|
|
@@ -29,9 +30,17 @@ openerp.eiru_pos = (instance, local) => {
|
|
|
this.vm.$destroy()
|
|
|
$(this.vm.$el).remove()
|
|
|
this.vm = null
|
|
|
- instance.eiru_theme.instance.show()
|
|
|
+
|
|
|
+ this.sidebarUnfold()
|
|
|
|
|
|
this._super.apply(this, arguments)
|
|
|
+ },
|
|
|
+ sidebarFold() {
|
|
|
+ if (!instance.eiru_sidebar_toggler) return
|
|
|
+ instance.eiru_sidebar_toggler.sidebar_fold()
|
|
|
+ },
|
|
|
+ sidebarUnfold() {
|
|
|
+ instance.eiru_sidebar_toggler.sidebar_unfold()
|
|
|
}
|
|
|
})
|
|
|
|