diff options
-rw-r--r-- | views/composer/qml/View.qml | 3 | ||||
-rw-r--r-- | views/people/qml/View.qml | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/views/composer/qml/View.qml b/views/composer/qml/View.qml index 9e390156..35775d9e 100644 --- a/views/composer/qml/View.qml +++ b/views/composer/qml/View.qml | |||
@@ -52,6 +52,9 @@ Kube.View { | |||
52 | 52 | ||
53 | onSetup: { | 53 | onSetup: { |
54 | loadMessage(root.message, root.loadType) | 54 | loadMessage(root.message, root.loadType) |
55 | } | ||
56 | |||
57 | onRefresh: { | ||
55 | Kube.Fabric.postMessage(Kube.Messages.synchronize, {"type": "mail", "specialPurpose": "drafts"}) | 58 | Kube.Fabric.postMessage(Kube.Messages.synchronize, {"type": "mail", "specialPurpose": "drafts"}) |
56 | //For autocompletion | 59 | //For autocompletion |
57 | Kube.Fabric.postMessage(Kube.Messages.synchronize, {"type": "contacts"}) | 60 | Kube.Fabric.postMessage(Kube.Messages.synchronize, {"type": "contacts"}) |
diff --git a/views/people/qml/View.qml b/views/people/qml/View.qml index 800c4925..1da7ab5a 100644 --- a/views/people/qml/View.qml +++ b/views/people/qml/View.qml | |||
@@ -22,9 +22,9 @@ import QtQuick 2.7 | |||
22 | import QtQuick.Controls 2.1 | 22 | import QtQuick.Controls 2.1 |
23 | import org.kube.framework 1.0 as Kube | 23 | import org.kube.framework 1.0 as Kube |
24 | 24 | ||
25 | Item { | 25 | Kube.View { |
26 | 26 | ||
27 | StackView.onActivated: { | 27 | onRefresh: { |
28 | Kube.Fabric.postMessage(Kube.Messages.synchronize, {"type": "contacts"}) | 28 | Kube.Fabric.postMessage(Kube.Messages.synchronize, {"type": "contacts"}) |
29 | } | 29 | } |
30 | 30 | ||