From 86d8ca59cd10c7a4ff7db2540b924b87a832727b Mon Sep 17 00:00:00 2001 From: Tobias Priesching Date: Tue, 22 Dec 2020 23:09:31 +0100 Subject: [PATCH 1/3] remove form from petri-net-place -> solves reloading on enter --- .../uml-petri-net-place/uml-petri-net-place-update.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/packages/uml-petri-net/uml-petri-net-place/uml-petri-net-place-update.tsx b/src/main/packages/uml-petri-net/uml-petri-net-place/uml-petri-net-place-update.tsx index bca877965..588794930 100644 --- a/src/main/packages/uml-petri-net/uml-petri-net-place/uml-petri-net-place-update.tsx +++ b/src/main/packages/uml-petri-net/uml-petri-net-place/uml-petri-net-place-update.tsx @@ -71,7 +71,6 @@ class UmlPetriNetPlaceUpdateComponent extends Component {
{this.props.translate('popup.capacity')} -
{!isFinite(element.capacity) && ( @@ -86,7 +85,6 @@ class UmlPetriNetPlaceUpdateComponent extends Component { > -
From dc94b9b20454e8703c9699f178f8ddfc837fe025 Mon Sep 17 00:00:00 2001 From: Tobias Priesching Date: Tue, 22 Dec 2020 23:35:35 +0100 Subject: [PATCH 2/3] update snapshot after petri-net-place-update change --- .../uml-petri-net-place-update-test.tsx.snap | 92 +++++++++---------- 1 file changed, 44 insertions(+), 48 deletions(-) diff --git a/src/tests/packages/uml-petri-diagram/uml-petri-net-place/__snapshots__/uml-petri-net-place-update-test.tsx.snap b/src/tests/packages/uml-petri-diagram/uml-petri-net-place/__snapshots__/uml-petri-net-place-update-test.tsx.snap index 5c43ec9d0..f9968baa0 100644 --- a/src/tests/packages/uml-petri-diagram/uml-petri-net-place/__snapshots__/uml-petri-net-place-update-test.tsx.snap +++ b/src/tests/packages/uml-petri-diagram/uml-petri-net-place/__snapshots__/uml-petri-net-place-update-test.tsx.snap @@ -63,59 +63,55 @@ exports[`test petri net arc update render 1`] = ` > Capacity -
-
+ - - - - - - -
- -
+ + + + From a20b1116d4dc12b9d7ddbe43e0d6a5df2f520f93 Mon Sep 17 00:00:00 2001 From: Tobias Priesching Date: Tue, 22 Dec 2020 23:36:34 +0100 Subject: [PATCH 3/3] run prettier --- .../uml-petri-net-place-update.tsx | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/main/packages/uml-petri-net/uml-petri-net-place/uml-petri-net-place-update.tsx b/src/main/packages/uml-petri-net/uml-petri-net-place/uml-petri-net-place-update.tsx index 588794930..b064033ba 100644 --- a/src/main/packages/uml-petri-net/uml-petri-net-place/uml-petri-net-place-update.tsx +++ b/src/main/packages/uml-petri-net/uml-petri-net-place/uml-petri-net-place-update.tsx @@ -71,20 +71,20 @@ class UmlPetriNetPlaceUpdateComponent extends Component {
{this.props.translate('popup.capacity')} -
- - {!isFinite(element.capacity) && ( - - )} -
- +
+ + {!isFinite(element.capacity) && ( + + )} +
+