diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-03-28 16:37:32 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-03-29 19:01:14 +0200 |
commit | 9ab147575870f0303bb3dd36684e28f4afb27aca (patch) | |
tree | 9a67b1c0e568fb93297e15313b403ee81fafbd64 /components/package/contents/ui | |
parent | 23c08a63743c8e904a474df2a5dd9e733938b097 (diff) | |
download | kube-9ab147575870f0303bb3dd36684e28f4afb27aca.tar.gz kube-9ab147575870f0303bb3dd36684e28f4afb27aca.zip |
Outboxmodel status
Diffstat (limited to 'components/package/contents/ui')
-rw-r--r-- | components/package/contents/ui/Outbox.qml | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/components/package/contents/ui/Outbox.qml b/components/package/contents/ui/Outbox.qml index 6e29946b..1b48aa6f 100644 --- a/components/package/contents/ui/Outbox.qml +++ b/components/package/contents/ui/Outbox.qml | |||
@@ -86,9 +86,18 @@ Button { | |||
86 | } | 86 | } |
87 | text: model.subject | 87 | text: model.subject |
88 | 88 | ||
89 | //FIXME use theme color | 89 | color: KubeTheme.Colors.textColor |
90 | color: model.status == "error" ? KubeTheme.Colors.warningColor : KubeTheme.Colors.textColor | 90 | opacity: 1 |
91 | opacity: model.status == "sent" ? 0.5 : 1 | 91 | states: [ |
92 | State { | ||
93 | name: "inprogress"; when: model.status == KubeFramework.OutboxModel.InProgressStatus | ||
94 | PropertyChanges { target: subjectLabel; text: "Sending: " + model.subject } | ||
95 | }, | ||
96 | State { | ||
97 | name: "error"; when: model.status == KubeFramework.OutboxModel.ErrorStatus | ||
98 | PropertyChanges { target: subjectLabel; color: KubeTheme.Colors.warningColor } | ||
99 | } | ||
100 | ] | ||
92 | } | 101 | } |
93 | } | 102 | } |
94 | 103 | ||