mirror of
https://github.com/logos-blockchain/logos-blockchain-ui.git
synced 2026-07-08 00:39:28 +00:00
Drop dead deployment JSON, rename radio ids, fix layout jump.
This commit is contained in:
parent
bb793c4ad4
commit
5530e501ca
@ -393,17 +393,6 @@ QVariantMap BlockchainBackend::generateConfig(
|
||||
normalized.insert("external_address", externalAddress.trimmed());
|
||||
if (noPublicIpCheck)
|
||||
normalized.insert("no_public_ip_check", true);
|
||||
if (deploymentMode == 0) {
|
||||
QVariantMap deployment;
|
||||
deployment.insert("well_known_deployment", "testnet");
|
||||
normalized.insert("deployment", deployment);
|
||||
} else if (deploymentMode == 1
|
||||
&& !deploymentConfigPath.trimmed().isEmpty()) {
|
||||
QVariantMap deployment;
|
||||
deployment.insert("config_path",
|
||||
toLocalPath(deploymentConfigPath.trimmed()));
|
||||
normalized.insert("deployment", deployment);
|
||||
}
|
||||
// An explicit node state dir still wins: the module leaves a pinned path
|
||||
// untouched even when use_persistence_paths routing is on.
|
||||
if (!statePath.trimmed().isEmpty())
|
||||
|
||||
@ -35,7 +35,7 @@ ColumnLayout {
|
||||
httpAddrField.text.trim(),
|
||||
externalAddrField.text.trim(),
|
||||
noPublicIpCheckBox.checked,
|
||||
networkRadio.checked ? 0 : 1,
|
||||
defaultNetworkRadioButton.checked ? 0 : 1,
|
||||
customDeploymentField.text.trim(),
|
||||
statePathField.text.trim())
|
||||
}
|
||||
@ -166,28 +166,33 @@ ColumnLayout {
|
||||
}
|
||||
RowLayout {
|
||||
Layout.fillWidth: true
|
||||
Layout.preferredHeight: Math.max(defaultNetworkRadioButton.implicitHeight,
|
||||
customNetworkRadioButton.implicitHeight,
|
||||
customDeploymentField.implicitHeight,
|
||||
browseDeploymentButton.implicitHeight)
|
||||
spacing: Theme.spacing.medium
|
||||
RadioButton {
|
||||
id: networkRadio
|
||||
id: defaultNetworkRadioButton
|
||||
font.pixelSize: Theme.typography.secondaryText
|
||||
palette.windowText: Theme.palette.text
|
||||
checked: true
|
||||
text: qsTr("Default")
|
||||
}
|
||||
RadioButton {
|
||||
id: customRadio
|
||||
id: customNetworkRadioButton
|
||||
font.pixelSize: Theme.typography.secondaryText
|
||||
palette.windowText: Theme.palette.text
|
||||
text: qsTr("Custom config")
|
||||
}
|
||||
LogosTextField {
|
||||
id: customDeploymentField
|
||||
visible: customRadio.checked
|
||||
visible: customNetworkRadioButton.checked
|
||||
Layout.fillWidth: true
|
||||
placeholderText: qsTr("Path to deployment config")
|
||||
}
|
||||
LogosButton {
|
||||
visible: customRadio.checked
|
||||
id: browseDeploymentButton
|
||||
visible: customNetworkRadioButton.checked
|
||||
text: qsTr("Browse")
|
||||
onClicked: deploymentConfigFileDialog.open()
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user