Skip to content

Commit

Permalink
IJMP-1310: do not reset dataset name and member name
Browse files Browse the repository at this point in the history
  • Loading branch information
Dzianis Lisiankou authored and Dzianis Lisiankou committed Mar 1, 2024
1 parent 9dbb439 commit 218f5a3
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 218f5a3

Please sign in to comment.