diff --git a/nymea-app/translations/nymea-app-de.ts b/nymea-app/translations/nymea-app-de.ts
index bec4972f..8ae0711f 100644
--- a/nymea-app/translations/nymea-app-de.ts
+++ b/nymea-app/translations/nymea-app-de.ts
@@ -503,9 +503,9 @@
There are %n boxes connected to your cloud
-
- Es ist %1 Box mit Deiner Cloud verbunden
- Es sind %1 Boxen mit Deiner Cloud verbunden
+
+ Es ist %n Box mit Deiner Cloud verbunden
+ Es sind %n Boxen mit Deiner Cloud verbunden
@@ -640,6 +640,13 @@
See our <a href="%1">privacy policy</a> to find out what information is processed. By signing up to %2:cloud you accept those terms and conditions.
Bitte lese unsere <a href="%1">Datenschutzerklärung</a> um herauszufinden welche Informationen verarbeitet werden. Wenn du dich bei %2:cloud registrierst, erklärst Du Dich damit einverstanden.
+
+ There are %n boxes connected to your cloud.
+
+ Es ist %n Box mit Deiner Cloud verbunden.
+ Es sind %n Boxen mit Deiner Cloud verbunden.
+
+
CloudSettingsPage
diff --git a/nymea-app/translations/nymea-app-en_US.ts b/nymea-app/translations/nymea-app-en_US.ts
index b100e6a6..83ad6560 100644
--- a/nymea-app/translations/nymea-app-en_US.ts
+++ b/nymea-app/translations/nymea-app-en_US.ts
@@ -1,6 +1,6 @@
-
+
AWSPasswordTextField
@@ -334,8 +334,9 @@
There are %n boxes connected to your cloud
-
-
+
+ There is %n box connected to your cloud.
+ There are %n boxes connected to your cloud.
@@ -466,6 +467,13 @@
See our <a href="%1">privacy policy</a> to find out what information is processed. By signing up to %2:cloud you accept those terms and conditions.
+
+ There are %n boxes connected to your cloud.
+
+ There is %n box connected to your cloud.
+ There are %n boxes connected to your cloud.
+
+
CloudSettingsPage
diff --git a/nymea-app/ui/appsettings/CloudLoginPage.qml b/nymea-app/ui/appsettings/CloudLoginPage.qml
index f120cedc..4b48bd64 100644
--- a/nymea-app/ui/appsettings/CloudLoginPage.qml
+++ b/nymea-app/ui/appsettings/CloudLoginPage.qml
@@ -37,77 +37,72 @@ Page {
}
}
- Flickable {
+ ColumnLayout {
anchors.fill: parent
- interactive: contentHeight > height
- contentHeight: childrenRect.height
visible: AWSClient.isLoggedIn
- ColumnLayout {
- width: parent.width
- Label {
- Layout.fillWidth: true
- Layout.topMargin: app.margins
- Layout.leftMargin: app.margins
- Layout.rightMargin: app.margins
- wrapMode: Text.WordWrap
- text: qsTr("Logged in as %1").arg(AWSClient.username)
- }
+ Label {
+ Layout.fillWidth: true
+ Layout.topMargin: app.margins
+ Layout.leftMargin: app.margins
+ Layout.rightMargin: app.margins
+ wrapMode: Text.WordWrap
+ text: qsTr("Logged in as %1").arg(AWSClient.username)
+ }
+
+ Button {
+ Layout.fillWidth: true
+ Layout.margins: app.margins
+ text: qsTr("Log out")
+ onClicked: {
+ logoutDialog.open()
+ }
+ }
+
+ ThinDivider {}
+
+ Label {
+ Layout.fillWidth: true
+ Layout.topMargin: app.margins
+ Layout.leftMargin: app.margins
+ Layout.rightMargin: app.margins
+ wrapMode: Text.WordWrap
+ text: AWSClient.awsDevices.count === 0 ?
+ qsTr("There are no boxes connected to your cloud yet.") :
+ qsTr("There are %n boxes connected to your cloud.", "", AWSClient.awsDevices.count)
+ }
+ ListView {
+ Layout.fillWidth: true
+ Layout.fillHeight: true
+ clip: true
+ model: AWSClient.awsDevices
+ delegate: MeaListItemDelegate {
+ width: parent.width
+ text: model.name
+ subText: model.id
+ progressive: false
+ prominentSubText: false
+ canDelete: true
+ iconName: "../images/cloud.svg"
+ secondaryIconName: !model.online ? "../images/cloud-error.svg" : ""
- Button {
- Layout.fillWidth: true
- Layout.margins: app.margins
- text: qsTr("Log out")
onClicked: {
- logoutDialog.open()
- }
- }
-
- ThinDivider {}
-
- Label {
- Layout.fillWidth: true
- Layout.topMargin: app.margins
- Layout.leftMargin: app.margins
- Layout.rightMargin: app.margins
- wrapMode: Text.WordWrap
- text: AWSClient.awsDevices.count === 0 ?
- qsTr("There are no boxes connected to your cloud yet.") :
- qsTr("There are %n boxes connected to your cloud", "", AWSClient.awsDevices.count)
- }
- ListView {
- Layout.fillWidth: true
- Layout.fillHeight: true
- clip: true
- model: AWSClient.awsDevices
- delegate: MeaListItemDelegate {
- width: parent.width
- text: model.name
- subText: model.id
- progressive: false
- prominentSubText: false
- canDelete: true
- iconName: "../images/cloud.svg"
- secondaryIconName: !model.online ? "../images/cloud-error.svg" : ""
-
- onClicked: {
- print("clicked, connected:", engine.connection.connected, model.id)
- if (!engine.connection.connected) {
- var host = discovery.nymeaHosts.find(model.id)
- engine.connection.connect(host);
- }
- }
-
- onDeleteClicked: {
- AWSClient.unpairDevice(model.id);
+ print("clicked, connected:", engine.connection.connected, model.id)
+ if (!engine.connection.connected) {
+ var host = discovery.nymeaHosts.find(model.id)
+ engine.connection.connect(host);
}
}
- BusyIndicator {
- anchors.centerIn: parent
- visible: AWSClient.awsDevices.busy
+ onDeleteClicked: {
+ AWSClient.unpairDevice(model.id);
}
}
+
+ BusyIndicator {
+ anchors.centerIn: parent
+ visible: AWSClient.awsDevices.busy
+ }
}
}