Skip to content

Commit 1154627

Browse files
committed
fix: minor fixes
save and blur when input is reset, moved log in main div, fix missing description in output type, handle space keypress
1 parent a672ab3 commit 1154627

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

src/index.html

+1-4
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020

2121
<div id="app" class="container-fluid no-gutters h-100">
2222

23-
<log ref="log"></log>
24-
2523
<!-- <div id="header" class="row">
2624
<h1 class="col-3">Name</h1>
2725
@@ -56,8 +54,7 @@ <h1 class="col-3">Name</h1>
5654
<!-- minimap -->
5755
<minimap :scale="scale" :moved-elements="movedElements" :translation="translation" :paper="paper" :graph="graph"></minimap>
5856

59-
<!-- trash -->
60-
<!-- <div id="trash"><i class="fas fa-trash"></i></div> -->
57+
<log ref="log"></log>
6158

6259
<!-- content -->
6360
<div id="paper-html-elements" class="h-100"></div>

src/js/constants/webservicesDecorator.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ const getTypeName = type => {
4545

4646
const webservicesDecorator = xml => {
4747
const json = [];
48-
4948
for (const algoData of xml.Services.Service) {
5049
const {
5150
Id: [id],
@@ -105,10 +104,16 @@ const webservicesDecorator = xml => {
105104
if (outputsData) {
106105
for (const output of outputsData.Output) {
107106
const {
108-
Description: [description],
107+
Description,
109108
Name: [name],
110109
Type: [typeData]
111110
} = output;
111+
112+
let description;
113+
if (Description) {
114+
description = Description[0];
115+
}
116+
112117
const { type, allowed } = getTypeName(typeData);
113118
const out = {
114119
description,

src/js/events/keyboardEvents.js

-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ export const initKeyboardEvents = () => {
9595
}
9696
case " ": {
9797
spaceDown = true;
98-
event.preventDefault();
9998
break;
10099
}
101100
default:

src/js/layout/inputs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export function resetValue(event) {
7171
case Inputs.NUMBER.tag:
7272
$(el.parentNode.querySelector(Inputs.NUMBER.tag))
7373
.val(defaultValue)
74-
.trigger("input");
74+
.trigger("blur");
7575
break;
7676
default:
7777
alert("error");

0 commit comments

Comments
 (0)