Skip to content

Commit 07dc6bc

Browse files
committed
Added UI items for condut export and import
1 parent 2ebd2bb commit 07dc6bc

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

web/static/css/conductEditor.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,18 @@ html, body {
134134
}
135135

136136
.newModelObject {
137+
position: absolute;
138+
z-index: 1;
139+
right: 150px;
140+
}
141+
142+
.exportConductButton {
143+
position: absolute;
144+
z-index: 1;
145+
right: 75px;
146+
}
147+
148+
.importConductButton {
137149
position: absolute;
138150
z-index: 1;
139151
right: 1px;

web/static/javascript/flow.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,16 @@ function deleteFlowObject() {
351351
deleteSelected()
352352
}
353353

354+
function exportConduct() {
355+
var conductID = GetURLParameter("conductID")
356+
window.open("/conductEditor/"+conductID+"/export/", "_blank");
357+
}
358+
359+
function importConduct() {
360+
var conductID = GetURLParameter("conductID")
361+
window.open("/conductEditor/"+conductID+"/import/", "_blank");
362+
}
363+
354364
function copyFlowObject() {
355365
selectedNodes = network.getSelectedNodes()
356366
if (selectedNodes.length == 1) {

web/templates/conductEditor.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
<body>
4040
<div class="ui-container">
4141
<button onclick="createNewObjectPanel()" class="btn btn-primary newModelObject theme-panelButton">+</button>
42+
<button onclick="exportConduct()" class="btn btn-primary exportConductButton theme-panelButton">Export</button>
43+
<button onclick="importConduct()" class="btn btn-primary importConductButton theme-panelButton">Import</button>
4244
<div class="ui-main">
4345
<!-- Right Click Menu -->
4446
<ul id="contextMenu" class="dropdown-menu" role="menu" style="display:none" >

0 commit comments

Comments
 (0)