summaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-03-20 09:33:42 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-03-20 09:58:00 +0100
commitc3ba13d4240005cb9e7bdaca5977114e74bd0e9a (patch)
tree1ee5d114c6ac0c9680106059b48c22b3d65e99ff /components
parent4b501d7c7bb37423a3963b85a74e804e22368095 (diff)
downloadkube-c3ba13d4240005cb9e7bdaca5977114e74bd0e9a.tar.gz
kube-c3ba13d4240005cb9e7bdaca5977114e74bd0e9a.zip
Support synchronizing individual accounts
Diffstat (limited to 'components')
-rw-r--r--components/mail/contents/ui/Mail.qml25
-rw-r--r--components/package/contents/ui/AccountSwitcher.qml1
2 files changed, 26 insertions, 0 deletions
diff --git a/components/mail/contents/ui/Mail.qml b/components/mail/contents/ui/Mail.qml
index 3cc0d4f4..acb75554 100644
--- a/components/mail/contents/ui/Mail.qml
+++ b/components/mail/contents/ui/Mail.qml
@@ -237,6 +237,23 @@ Controls2.ApplicationWindow {
237 Item { 237 Item {
238 id: accountName 238 id: accountName
239 239
240 KubeFramework.FolderController {
241 id: accountNameFolderController
242 accountId: accountSwitcher.accountId
243 }
244
245 Menu {
246 id: contextMenu
247 title: "Edit"
248
249 MenuItem {
250 text: "Synchronize"
251 onTriggered: {
252 accountNameFolderController.synchronizeAction.execute()
253 }
254 }
255 }
256
240 anchors { 257 anchors {
241 top: newMailButton.bottom 258 top: newMailButton.bottom
242 topMargin: Kirigami.Units.smallSpacing 259 topMargin: Kirigami.Units.smallSpacing
@@ -245,6 +262,14 @@ Controls2.ApplicationWindow {
245 width: parent.width 262 width: parent.width
246 height: Kirigami.Units.gridUnit * 2 263 height: Kirigami.Units.gridUnit * 2
247 264
265 MouseArea {
266 anchors.fill: parent
267 acceptedButtons: Qt.RightButton
268 onClicked: {
269 contextMenu.popup()
270 }
271 }
272
248 Text { 273 Text {
249 anchors { 274 anchors {
250 bottom: parent.bottom 275 bottom: parent.bottom
diff --git a/components/package/contents/ui/AccountSwitcher.qml b/components/package/contents/ui/AccountSwitcher.qml
index 48bb2c1b..31c5e6d4 100644
--- a/components/package/contents/ui/AccountSwitcher.qml
+++ b/components/package/contents/ui/AccountSwitcher.qml
@@ -39,6 +39,7 @@ Controls.ToolButton {
39 39
40 KubeFramework.FolderController { 40 KubeFramework.FolderController {
41 id: folderController 41 id: folderController
42 accountId: accountId
42 } 43 }
43 44
44 KubeAccounts.AccountsModel { 45 KubeAccounts.AccountsModel {