diff options
Diffstat (limited to 'components/package/contents/ui/Outbox.qml')
-rw-r--r-- | components/package/contents/ui/Outbox.qml | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/components/package/contents/ui/Outbox.qml b/components/package/contents/ui/Outbox.qml index 1b48aa6f..1f0400d3 100644 --- a/components/package/contents/ui/Outbox.qml +++ b/components/package/contents/ui/Outbox.qml | |||
@@ -40,6 +40,17 @@ Button { | |||
40 | id: outboxController | 40 | id: outboxController |
41 | } | 41 | } |
42 | 42 | ||
43 | KubeFramework.OutboxModel { | ||
44 | id: outboxModel | ||
45 | } | ||
46 | |||
47 | states: [ | ||
48 | State { | ||
49 | name: "noempty"; when: outboxModel.count > 0 | ||
50 | PropertyChanges { target: root; text: "outbox (" + outboxModel.count + ")" } | ||
51 | } | ||
52 | ] | ||
53 | |||
43 | Popup { | 54 | Popup { |
44 | id: dialog | 55 | id: dialog |
45 | 56 | ||
@@ -65,7 +76,7 @@ Button { | |||
65 | width: parent.width | 76 | width: parent.width |
66 | height: count * Kirigami.Units.gridUnit * 3 | 77 | height: count * Kirigami.Units.gridUnit * 3 |
67 | 78 | ||
68 | model: KubeFramework.OutboxModel {} | 79 | model: outboxModel |
69 | 80 | ||
70 | delegate: Rectangle { | 81 | delegate: Rectangle { |
71 | id: delegateRoot | 82 | id: delegateRoot |