Skip to content

Commit

Permalink
Merge 00c290e into 2df58f4
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniloKa authored Oct 31, 2018
2 parents 2df58f4 + 00c290e commit 41b82f1
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions src/qml/ConnectionSettignsDialog.qml
Original file line number Diff line number Diff line change
Expand Up @@ -138,19 +138,26 @@ Dialog {

Tab {
id: mainTab
anchors.fill: parent
anchors.margins: 10
title: qsTranslate("RDM","Connection Settings")

ScrollView {
ColumnLayout {
anchors.left: parent.left
anchors.right: parent.right
anchors.margins: PlatformUtils.isOSX()? 5 : 10
id: mainSettingsScrollView
width: settingsTabs.width - 20
height: settingsTabs.height

ColumnLayout {
width: mainSettingsScrollView.width
height: children.height

SettingsGroupTitle { text: qsTranslate("RDM","Main Settings") }

GridLayout {
columns: 2

Layout.fillWidth: true

Label { text: qsTranslate("RDM","Name:") }

TextField {
Expand Down Expand Up @@ -202,7 +209,7 @@ Dialog {
id: sslRadioButton
Layout.columnSpan: 2
text: qsTranslate("RDM","SSL")
checked: root.settings ? root.settings.sslEnabled : false
checked: root.settings ? root.settings.sslEnabled && !root.sshEnabled : false
Component.onCompleted: root.sslEnabled = Qt.binding(function() { return sslRadioButton.checked })
onCheckedChanged: {
root.settings.sslEnabled = checked
Expand Down Expand Up @@ -358,6 +365,16 @@ Dialog {
text: root.settings ? root.settings.sshPassword : ""
onTextChanged: root.settings.sshPassword = text
}
}

BetterCheckbox {
id: sshTLSoverSSHCheckbox
objectName: "rdm_connection_security_ssh_tls_over_ssh"
Layout.fillWidth: true
Layout.columnSpan: 2
text: qsTranslate("RDM","Enable TLS-over-SSH (<b>AWS ElastiCache</b> <b>Encryption in-transit</b>)")
checked: root.settings ? root.settings.sslEnabled && root.sshEnabled : false
onCheckedChanged: root.settings.sslEnabled = checked
}
}
}
Expand Down

0 comments on commit 41b82f1

Please sign in to comment.