Skip to content

Commit

Permalink
Merge branch 'bugfix/IJMP-1310' into 'release/v1.1.3-221'
Browse files Browse the repository at this point in the history
IJMP-1310: do not reset dataset name and member name

See merge request ijmp/for-mainframe!490
  • Loading branch information
Dzianis Lisiankou committed Mar 6, 2024
2 parents 9dbb439 + 218f5a3 commit 303bb5d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class AllocationDialog(project: Project?, config: ConnectionConfig, override var
.bindText(state::datasetName)
.also {
datasetNameField = it.component
datasetNameField.text = "${HLQ}.<CHANGEME>"
datasetNameField.text.ifEmpty { datasetNameField.text = "${HLQ}.<CHANGEME>" }
}
.onApply { state.datasetName = state.datasetName.uppercase() }
.horizontalAlign(HorizontalAlign.FILL)
Expand All @@ -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)
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 303bb5d

Please sign in to comment.