From 218f5a3a3ef9c3efc31d5befff79a255902a5c5c Mon Sep 17 00:00:00 2001 From: Dzianis Lisiankou Date: Fri, 1 Mar 2024 15:43:30 +0300 Subject: [PATCH] IJMP-1310: do not reset dataset name and member name --- .../ibagroup/formainframe/explorer/ui/AllocationDialog.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/eu/ibagroup/formainframe/explorer/ui/AllocationDialog.kt b/src/main/kotlin/eu/ibagroup/formainframe/explorer/ui/AllocationDialog.kt index 48d42804..8876abe9 100644 --- a/src/main/kotlin/eu/ibagroup/formainframe/explorer/ui/AllocationDialog.kt +++ b/src/main/kotlin/eu/ibagroup/formainframe/explorer/ui/AllocationDialog.kt @@ -85,7 +85,7 @@ class AllocationDialog(project: Project?, config: ConnectionConfig, override var .bindText(state::datasetName) .also { datasetNameField = it.component - datasetNameField.text = "${HLQ}." + datasetNameField.text.ifEmpty { datasetNameField.text = "${HLQ}." } } .onApply { state.datasetName = state.datasetName.uppercase() } .horizontalAlign(HorizontalAlign.FILL) @@ -98,7 +98,7 @@ class AllocationDialog(project: Project?, config: ConnectionConfig, override var .bindText(state::memberName) .also { memberNameField = it.component - memberNameField.text = "SAMPLE" + memberNameField.text.ifEmpty { memberNameField.text = "SAMPLE" } } .onApply { state.memberName = state.memberName.uppercase() } .horizontalAlign(HorizontalAlign.FILL) @@ -301,7 +301,7 @@ class AllocationDialog(project: Project?, config: ConnectionConfig, override var */ private fun doPresetAssignment(preset: Presets) { val dataContainer = Presets.initDataClass(preset) - memberNameField.text = "SAMPLE" + memberNameField.text.ifEmpty { memberNameField.text = "SAMPLE" } datasetOrganizationBox.selectedItem = dataContainer.datasetOrganization spaceUnitBox.selectedItem = dataContainer.spaceUnit primaryAllocationField.text = dataContainer.primaryAllocation.toString()