mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-01-27 09:45:12 +00:00
hide the js-properties-panel if we are in view-only mode.
This commit is contained in:
parent
6aaae539a0
commit
0285fe5b85
@ -142,11 +142,14 @@ export default function ReactDiagramEditor({
|
||||
}
|
||||
|
||||
const temp = document.createElement('template');
|
||||
const panelId: string =
|
||||
diagramType === 'readonly'
|
||||
? 'hidden-properties-panel'
|
||||
: 'js-properties-panel';
|
||||
temp.innerHTML = `
|
||||
<div class="content with-diagram" id="js-drop-zone">
|
||||
<div class="canvas ${canvasClass}" id="canvas"
|
||||
></div>
|
||||
<div class="properties-panel-parent" id="js-properties-panel"></div>
|
||||
<div class="canvas ${canvasClass}" id="canvas"></div>
|
||||
<div class="properties-panel-parent" id="${panelId}"></div>
|
||||
</div>
|
||||
`;
|
||||
const frag = temp.content;
|
||||
|
Loading…
x
Reference in New Issue
Block a user