Skip to content

Commit 232f186

Browse files
committed
apis updated
1 parent 5198f36 commit 232f186

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

src/graph-builder/graph-core/6-server.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class GraphServer extends GraphLoadSave {
6868

6969
build() {
7070
// TODO
71-
Axios.post(`http://127.0.0.1:5000/build/${this.superState.uploadedDirName}?fetch=${this.superState.graphs[this.superState.curGraphIndex].fileName.split('.')[0]}`)
71+
Axios.post(`http://127.0.0.1:5000/build/${this.superState.uploadedDirName}?fetch=${this.superState.graphs[this.superState.curGraphIndex].fileName.split('.')[0]}&unlock=${this.superState.unlockCheck}&docker=${this.superState.dockerCheck}&maxtime=${this.superState.maxTime}&params=${this.superState.params}`)
7272
.then((res) => { // eslint-disable-next-line
7373
toast.success(res.data['message'])
7474
}).catch((err) => { // eslint-disable-next-line
@@ -102,8 +102,7 @@ class GraphServer extends GraphLoadSave {
102102
clear() {
103103
// TODO
104104
Axios.post(`http://127.0.0.1:5000/clear/${this.superState.graphs[this.superState.curGraphIndex].fileName.split('.')[0]}
105-
?unlock=${this.superState.unlockCheck}&docker=${this.superState.dockerCheck}&maxtime=${this.superState.maxTime}&
106-
params=${this.superState.params}&`)
105+
?unlock=${this.superState.unlockCheck}&maxtime=${this.superState.maxTime}&params=${this.superState.params}`)
107106
.then((res) => { // eslint-disable-next-line
108107
toast.success(res.data['message']);
109108
// console.log(this.superState.dockerCheck);

src/toolbarActions/toolbarList.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable no-alert */
22
import {
33
FaSave, FaUndo, FaRedo, FaTrash, FaFileImport, FaPlus, FaDownload, FaEdit, FaRegTimesCircle, FaHistory,
4-
FaHammer, FaBug, FaBomb, FaToggleOn, FaThermometerEmpty, FaTrashRestore, FaCogs,
4+
FaHammer, FaBug, FaBomb, FaToggleOn, FaThermometerEmpty, FaTrashRestore, FaCogs, FaPencilAlt,
55
} from 'react-icons/fa';
66

77
import {
@@ -30,7 +30,7 @@ const toolbarList = (state, dispatcher) => [
3030
{
3131
type: 'action',
3232
text: 'Create',
33-
icon: FaFileImport,
33+
icon: FaPencilAlt,
3434
action: createFile,
3535
active: true,
3636
visibility: true,

0 commit comments

Comments
 (0)