Files
amnezia-client/client/ui/qml/Pages/Protocols/PageProtoNextcloud.qml
Igor Bronshtein 6513ecfa99 Fix Nextcloud logic in UI
Now the port value from UI should be assigned to the attribute NextcloudLogic object.
2023-05-24 19:37:22 +02:00

81 lines
2.0 KiB
QML

import QtQuick
import QtQuick.Controls
import ProtocolEnum 1.0
import "../"
import "../../Controls"
import "../../Config"
PageProtocolBase {
id: root
protocol: ProtocolEnum.Nextcloud
logic: UiLogic.protocolLogic(protocol)
BackButton {
id: back
}
Caption {
id: caption
text: qsTr("Nextcloud settings")
}
Rectangle {
id: frame_settings
width: parent.width
anchors.top: caption.bottom
anchors.topMargin: 10
border.width: 1
border.color: "lightgray"
anchors.bottomMargin: 5
anchors.horizontalCenter: parent.horizontalCenter
radius: 2
Grid {
id: grid
anchors.fill: parent
columns: 2
horizontalItemAlignment: Grid.AlignHCenter
verticalItemAlignment: Grid.AlignVCenter
topPadding: 5
leftPadding: 30
rightPadding: 30
spacing: 5
LabelType {
width: 130
text: qsTr("Port")
}
TextFieldType {
id: tf_port_num
width: parent.width - 130 - parent.spacing - parent.leftPadding * 2
text: logic.lineNextcloudPortText
readOnly: true
}
LabelType {
width: 130
text: qsTr("Admin user")
}
TextFieldType {
id: tf_admin_user
width: parent.width - 130 - parent.spacing - parent.leftPadding * 2
text: logic.lineAdminUserText
readOnly: true
}
LabelType {
width: 130
text: qsTr("Admin password")
}
TextFieldType {
id: tf_admin_password
width: parent.width - 130 - parent.spacing - parent.leftPadding * 2
text: logic.lineAdminPasswordText
readOnly: true
}
}
}
}