mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-26 09:24:07 +00:00
fix(client) baseInit: init both panels in OnePanelMode (#116)
This commit is contained in:
parent
63f00db931
commit
6706d359f4
1 changed files with 14 additions and 2 deletions
|
|
@ -323,8 +323,8 @@ function CloudCmdProto(Util, DOM) {
|
|||
Listeners = CloudCmd.Listeners;
|
||||
Listeners.init();
|
||||
|
||||
Listeners.setOnPanel('left');
|
||||
Listeners.setOnPanel('right');
|
||||
const panels = getPanels();
|
||||
panels.forEach(Listeners.setOnPanel);
|
||||
|
||||
Listeners.initKeysPanel();
|
||||
|
||||
|
|
@ -338,6 +338,18 @@ function CloudCmdProto(Util, DOM) {
|
|||
callback();
|
||||
}
|
||||
|
||||
function getPanels() {
|
||||
const panels = ['left'];
|
||||
|
||||
if (CloudCmd.config('onePanelMode'))
|
||||
return panels;
|
||||
|
||||
return [
|
||||
...panels,
|
||||
'rigth',
|
||||
];
|
||||
}
|
||||
|
||||
this.execFromModule = (moduleName, funcName, ...args) => {
|
||||
const obj = CloudCmd[moduleName];
|
||||
const isObj = itype.object(obj);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue