Skip to content

Commit d06cc28

Browse files
committed
Added UI object for codify
1 parent 07dc6bc commit d06cc28

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

web/static/css/conductEditor.css

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,15 +136,21 @@ html, body {
136136
.newModelObject {
137137
position: absolute;
138138
z-index: 1;
139-
right: 150px;
139+
right: 225px;
140140
}
141141

142-
.exportConductButton {
142+
.codifyConductButton {
143143
position: absolute;
144144
z-index: 1;
145145
right: 75px;
146146
}
147147

148+
.exportConductButton {
149+
position: absolute;
150+
z-index: 1;
151+
right: 150px;
152+
}
153+
148154
.importConductButton {
149155
position: absolute;
150156
z-index: 1;

web/static/javascript/flow.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,11 @@ function importConduct() {
361361
window.open("/conductEditor/"+conductID+"/import/", "_blank");
362362
}
363363

364+
function codifyConduct() {
365+
var conductID = GetURLParameter("conductID")
366+
window.open("/conductEditor/"+conductID+"/codify/", "_blank");
367+
}
368+
364369
function copyFlowObject() {
365370
selectedNodes = network.getSelectedNodes()
366371
if (selectedNodes.length == 1) {

web/templates/conductEditor.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
<body>
4040
<div class="ui-container">
4141
<button onclick="createNewObjectPanel()" class="btn btn-primary newModelObject theme-panelButton">+</button>
42+
<button onclick="codifyConduct()" class="btn btn-primary codifyConductButton theme-panelButton">Codify</button>
4243
<button onclick="exportConduct()" class="btn btn-primary exportConductButton theme-panelButton">Export</button>
4344
<button onclick="importConduct()" class="btn btn-primary importConductButton theme-panelButton">Import</button>
4445
<div class="ui-main">

0 commit comments

Comments
 (0)