2020-01-14 16:47:42 +03:00
import QtQuick 2.2
2018-11-15 00:13:47 +03:00
import Sailfish . Silica 1.0
Dialog {
id: unencryptedDialog
2018-12-11 01:14:15 +03:00
canAccept: understandTextSwitch . checked && ownRiskTextSwitch . checked
2018-11-15 00:13:47 +03:00
SilicaFlickable {
anchors.fill: parent
2018-12-13 01:10:45 +03:00
contentHeight: column . height + Theme . paddingLarge
2018-11-15 00:13:47 +03:00
Column {
id: column
width: parent . width
DialogHeader {
}
2021-01-03 21:07:47 +03:00
LinkedLabel {
2018-11-15 00:13:47 +03:00
x: Theme . horizontalPageMargin
width: parent . width - 2 * x
wrapMode: Text . Wrap
linkColor: Theme . highlightColor
2018-12-11 01:14:15 +03:00
text: qsTr ( "<strong>" + qsTr ( "Your username and password will be transferred unencrypted over the network when you enable this option." ) + "<br>" + qsTr ( "Do not accept unless you know exactly what you are doing!" ) + "</strong><br><a href=\"https://github.com/nextcloud/notes/wiki/API-0.2#authentication--basics\">" + qsTr ( "More information..." ) + "</a>" )
2018-11-15 00:13:47 +03:00
}
TextSwitch {
2018-12-11 01:14:15 +03:00
id: understandTextSwitch
2018-11-15 00:13:47 +03:00
text: qsTr ( "I do understand" )
2018-12-11 01:14:15 +03:00
onCheckedChanged: if ( ! checked ) ownRiskTextSwitch . checked = false
}
TextSwitch {
id: ownRiskTextSwitch
opacity: understandTextSwitch . checked ? 1.0 : 0.0
Behavior on opacity { FadeAnimator { } }
text: qsTr ( "I use this option at my own risk" )
2018-11-15 00:13:47 +03:00
}
}
}
2018-12-04 19:24:45 +03:00
allowedOrientations: defaultAllowedOrientations
2018-11-15 00:13:47 +03:00
}