mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-02-10 18:05:32 +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) {
|
||||
this.appConfig = mode;
|
||||
|
||||
this.view = this.createView('Common.Views.Draw', {
|
||||
mode: mode
|
||||
});
|
||||
if (mode.isEdit)
|
||||
this.view = this.createView('Common.Views.Draw', {
|
||||
mode: mode
|
||||
});
|
||||
|
||||
return this;
|
||||
},
|
||||
@ -198,7 +199,7 @@ define([
|
||||
},
|
||||
|
||||
createToolbarPanel: function(groups) {
|
||||
return this.view.getPanel(groups);
|
||||
return this.view ? this.view.getPanel(groups) : null;
|
||||
},
|
||||
|
||||
getView: function(name) {
|
||||
|
||||
@ -2819,6 +2819,8 @@ define([
|
||||
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'};
|
||||
|
||||
Reference in New Issue
Block a user