Commit 19c83720 authored by Martin Straka's avatar Martin Straka
Browse files

Update account info action is moved to top-right corner (issue #34)

parent 17db2f77
......@@ -21,7 +21,6 @@
* the two.
*/
import QtQuick 2.7
import QtQuick.Controls 2.0
......@@ -65,6 +64,25 @@ Component {
color: datovkaPalette.text
}
}
Row {
anchors.verticalCenter: parent.verticalCenter
spacing: defaultMargin
anchors.right: parent.right
anchors.rightMargin: defaultMargin
Image {
id: actionButton
anchors.verticalCenter: parent.verticalCenter
sourceSize.height: imgHeight
source: "qrc:/ui/sync.svg"
MouseArea {
anchors.fill: parent
onClicked: {
isds.getAccountInfo(gUserName, false)
accounts.fillAccountInfo(gUserName)
}
}
}
}
}
Text {
id: emptyList
......
......@@ -100,24 +100,18 @@ Component {
}
ListElement {
index: 2
name: qsTr("Update account info")
image: "qrc:/ui/account-search.svg"
showNext: false
}
ListElement {
index: 3
name: qsTr("Clean up the file database")
image: "qrc:/ui/database.svg"
showNext: false
}
ListElement {
index: 4
index: 3
name: qsTr("Change password")
image: "qrc:/ui/account-key.svg"
showNext: false
}
ListElement {
index: 5
index: 4
name: qsTr("Delete account")
image: "qrc:/ui/account-remove.svg"
showNext: false
......@@ -180,12 +174,10 @@ Component {
pageView.push(accountDetailPage, StackView.Immediate)
accounts.fillAccountInfo(gUserName)
} else if (index == 2) {
isds.getAccountInfo(gUserName, false)
} else if (index == 3) {
files.deleteFileDb(gUserName)
} else if (index == 4) {
} else if (index == 3) {
isds.changePassword(gUserName, gAcntName)
} else if (index == 5) {
} else if (index == 4) {
if (accounts.removeAccount(gUserName, true)) {
pageView.pop(StackView.Immediate)
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment