diff options
-rw-r--r-- | framework/qml/StatusBar.qml | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/framework/qml/StatusBar.qml b/framework/qml/StatusBar.qml index 35ef46a8..c936146e 100644 --- a/framework/qml/StatusBar.qml +++ b/framework/qml/StatusBar.qml | |||
@@ -42,7 +42,6 @@ Item { | |||
42 | 42 | ||
43 | Column { | 43 | Column { |
44 | anchors.fill: root | 44 | anchors.fill: root |
45 | spacing: Kube.Units.smallSpacing | ||
46 | Kube.Label { | 45 | Kube.Label { |
47 | id: statusText | 46 | id: statusText |
48 | anchors.horizontalCenter: parent.horizontalCenter | 47 | anchors.horizontalCenter: parent.horizontalCenter |
@@ -52,6 +51,7 @@ Item { | |||
52 | name: "disconnected"; when: model.status == Kube.AccountsModel.OfflineStatus | 51 | name: "disconnected"; when: model.status == Kube.AccountsModel.OfflineStatus |
53 | PropertyChanges { target: root; visible: true } | 52 | PropertyChanges { target: root; visible: true } |
54 | PropertyChanges { target: statusText; text: "Disconnected"; visible: true } | 53 | PropertyChanges { target: statusText; text: "Disconnected"; visible: true } |
54 | PropertyChanges { target: descriptionText; visible: true } | ||
55 | }, | 55 | }, |
56 | State { | 56 | State { |
57 | name: "busy"; when: model.status == Kube.AccountsModel.BusyStatus | 57 | name: "busy"; when: model.status == Kube.AccountsModel.BusyStatus |
@@ -63,12 +63,23 @@ Item { | |||
63 | name: "error"; when: model.status == Kube.AccountsModel.ErrorStatus | 63 | name: "error"; when: model.status == Kube.AccountsModel.ErrorStatus |
64 | PropertyChanges { target: root; visible: true } | 64 | PropertyChanges { target: root; visible: true } |
65 | PropertyChanges { target: statusText; text: root.errorText; visible: true } | 65 | PropertyChanges { target: statusText; text: root.errorText; visible: true } |
66 | PropertyChanges { target: descriptionText; visible: true } | ||
66 | } | 67 | } |
67 | ] | 68 | ] |
68 | } | 69 | } |
70 | Kube.Label { | ||
71 | id: descriptionText | ||
72 | anchors.horizontalCenter: parent.horizontalCenter | ||
73 | visible: false | ||
74 | color: Kube.Colors.disabledTextColor | ||
75 | text: root.errorText | ||
76 | } | ||
69 | Kube.ProgressBar { | 77 | Kube.ProgressBar { |
70 | id: progressBar | 78 | id: progressBar |
71 | anchors.horizontalCenter: parent.horizontalCenter | 79 | anchors { |
80 | horizontalCenter: parent.horizontalCenter | ||
81 | topMargin: Kube.Units.smallSpacing | ||
82 | } | ||
72 | height: 2 | 83 | height: 2 |
73 | width: parent.width - Kube.Units.smallSpacing * 2 | 84 | width: parent.width - Kube.Units.smallSpacing * 2 |
74 | 85 | ||