mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-04-07 14:06:16 +08:00
Merge pull request 'Bug 73018' (#290) from fix/bug-73018 into develop
This commit is contained in:
@ -100,9 +100,10 @@ define([
|
|||||||
setMode: function(mode) {
|
setMode: function(mode) {
|
||||||
this.appConfig = mode;
|
this.appConfig = mode;
|
||||||
|
|
||||||
this.view = this.createView('Common.Views.Draw', {
|
if (mode.isEdit)
|
||||||
mode: mode
|
this.view = this.createView('Common.Views.Draw', {
|
||||||
});
|
mode: mode
|
||||||
|
});
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
@ -198,7 +199,7 @@ define([
|
|||||||
},
|
},
|
||||||
|
|
||||||
createToolbarPanel: function(groups) {
|
createToolbarPanel: function(groups) {
|
||||||
return this.view.getPanel(groups);
|
return this.view ? this.view.getPanel(groups) : null;
|
||||||
},
|
},
|
||||||
|
|
||||||
getView: function(name) {
|
getView: function(name) {
|
||||||
|
|||||||
@ -2819,6 +2819,8 @@ define([
|
|||||||
me.toolbar.addTab(tab, $panel, 6);
|
me.toolbar.addTab(tab, $panel, 6);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
me.getApplication().getController('Common.Controllers.Draw').setApi(me.api).setMode(config);
|
||||||
}
|
}
|
||||||
|
|
||||||
tab = {caption: me.toolbar.textTabView, action: 'view', extcls: config.isEdit ? 'canedit' : '', layoutname: 'toolbar-view', dataHintTitle: 'W'};
|
tab = {caption: me.toolbar.textTabView, action: 'view', extcls: config.isEdit ? 'canedit' : '', layoutname: 'toolbar-view', dataHintTitle: 'W'};
|
||||||
|
|||||||
Reference in New Issue
Block a user