From a31cbd2c452d596cb24797650f9eeb20bbdb6d92 Mon Sep 17 00:00:00 2001 From: Piotr Zarzycki Date: Wed, 30 Aug 2023 10:13:30 +0200 Subject: [PATCH 1/3] Fix wrapping text on buttons in Firefox (reference #39) --- Super.Human.Portal_Royale/src/resources/app-styles.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Super.Human.Portal_Royale/src/resources/app-styles.css b/Super.Human.Portal_Royale/src/resources/app-styles.css index e83f62a..29b2838 100644 --- a/Super.Human.Portal_Royale/src/resources/app-styles.css +++ b/Super.Human.Portal_Royale/src/resources/app-styles.css @@ -482,5 +482,5 @@ a:hover { } .jewel.button.primary.linkAppButton { - textWrap: wrap !important; + whiteSpace: pre-wrap !important; } \ No newline at end of file From ed40d2afaa200bf7f52d48b423985dc4a248ef44 Mon Sep 17 00:00:00 2001 From: Piotr Zarzycki Date: Wed, 30 Aug 2023 10:14:59 +0200 Subject: [PATCH 2/3] Update to next dev version 0.9.0-SNAPSHOT --- Super.Human.Portal_Royale/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Super.Human.Portal_Royale/pom.xml b/Super.Human.Portal_Royale/pom.xml index b096cbc..f98fbd1 100644 --- a/Super.Human.Portal_Royale/pom.xml +++ b/Super.Human.Portal_Royale/pom.xml @@ -4,7 +4,7 @@ net.apacheRoyaleTemplatedApp Super.Human.Portal - 0.1.8 + 0.1.9-SNAPSHOT swf Super.Human.Portal From 03699879598324f7932dbed98770d9a88469e8d1 Mon Sep 17 00:00:00 2001 From: Piotr Zarzycki Date: Wed, 30 Aug 2023 11:01:28 +0200 Subject: [PATCH 3/3] Display "Back" button when form is in read only mode - Back to list when form is in read only mode, back to read only mode when form is in edit state (reference #34 ) --- .../DocumentationForm.mxml | 23 +++++++++++++++---- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/Super.Human.Portal_Royale/src/generated/Super.Human.Portal_Royale/views/modules/DocumentationForm/DocumentationFormViews/DocumentationForm.mxml b/Super.Human.Portal_Royale/src/generated/Super.Human.Portal_Royale/views/modules/DocumentationForm/DocumentationFormViews/DocumentationForm.mxml index e1a99d1..84c3589 100644 --- a/Super.Human.Portal_Royale/src/generated/Super.Human.Portal_Royale/views/modules/DocumentationForm/DocumentationFormViews/DocumentationForm.mxml +++ b/Super.Human.Portal_Royale/src/generated/Super.Human.Portal_Royale/views/modules/DocumentationForm/DocumentationFormViews/DocumentationForm.mxml @@ -54,6 +54,15 @@ this.itemVO = null; } + private function initReadOnlyForm():void + { + this.currentState = 'contentState'; + this.isDisabled = true; + this.backCancelButton.text = "Back"; + this.proxy.selectedIndex = dg.selectedIndex; + this.itemVO = dg.selectedItem.clone(); + } + private function onSaveClick(event:Event):void { this.proxy.submitItem(this.itemVO); @@ -61,7 +70,14 @@ private function onCancelClick(event:Event):void { - this.cancelFormEdit(); + if (this.isDisabled) + { + this.cancelFormEdit(); + } + else + { + this.initReadOnlyForm(); + } } private function onAddItem(event:Event):void @@ -83,10 +99,7 @@ private function onGridDoubleClick(event:Event):void { - this.currentState = 'contentState'; - this.isDisabled = true; - this.proxy.selectedIndex = dg.selectedIndex; - this.itemVO = dg.selectedItem.clone(); + this.initReadOnlyForm(); } private function onServerItemChanged(event:Event):void