summaryrefslogtreecommitdiffstats
path: root/components/package/contents
diff options
context:
space:
mode:
Diffstat (limited to 'components/package/contents')
-rw-r--r--components/package/contents/ui/Outbox.qml15
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