Skip to content

Commit

Permalink
Prevent to open a second splitview from LuigiClient (SAP#1675)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesDoberer authored Oct 28, 2020
1 parent 6b9109c commit 4a7a8de
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/src/App.html
Original file line number Diff line number Diff line change
Expand Up @@ -622,9 +622,10 @@
//// SPLIT VIEW
export const openSplitView = (nodepath, settings) => {
if (mfSplitView.displayed) {
console.warn('Only one splitview can be oppened at a time');
console.warn('Only one splitview can be opened at a time');
return;
}
mfSplitView = SplitViewSvc.getDefaultData().mfSplitView;
SplitViewSvc.open(getComponentWrapper(), nodepath, settings);
};

Expand Down Expand Up @@ -1059,8 +1060,6 @@
let path = buildPath(e.data.params);
path = GenericHelpers.addLeadingSlash(path);
contentNode = node;
mfSplitView = SplitViewSvc.getDefaultData().mfSplitView;

openSplitView(path, e.data.params.splitView);
} else {
getUnsavedChangesModalPromise().then(() => {
Expand Down

0 comments on commit 4a7a8de

Please sign in to comment.