diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-02-11 22:50:40 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-02-11 23:01:39 +0100 |
commit | 1facae9ba5deb5af12093d70674b1661b1685c3d (patch) | |
tree | 19d58cdbd5afb6c3ba7a31596fb42759c136f669 /components | |
parent | 57fe704546267048fe3d4dcc441a9b76c0f4e55a (diff) | |
download | kube-1facae9ba5deb5af12093d70674b1661b1685c3d.tar.gz kube-1facae9ba5deb5af12093d70674b1661b1685c3d.zip |
Restart kube after a storage upgrade.
We currently don't deal with disappearing databases, and the db's are
loaded on process initialization. Thus we have to restart Kube for now
when something was upgraded.
Diffstat (limited to 'components')
-rw-r--r-- | components/kube/qml/upgrade.qml | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/components/kube/qml/upgrade.qml b/components/kube/qml/upgrade.qml index 8548b54d..3ce1c63b 100644 --- a/components/kube/qml/upgrade.qml +++ b/components/kube/qml/upgrade.qml | |||
@@ -37,11 +37,18 @@ Controls2.ApplicationWindow { | |||
37 | } | 37 | } |
38 | spacing: 0 | 38 | spacing: 0 |
39 | Kube.Heading { | 39 | Kube.Heading { |
40 | text: qsTr("Please wait while Kube is upgrading...") | 40 | text: !upgradeComplete ? qsTr("Please wait while Kube is upgrading...") : qsTr("Kube has upgraded the storage layer.") |
41 | color: Kube.Colors.highlightColor | 41 | color: Kube.Colors.highlightColor |
42 | } | 42 | } |
43 | Kube.Label { | 43 | Kube.Label { |
44 | text: qsTr("This might take a while.") | 44 | text: !upgradeComplete ? qsTr("This might take a while.") : qsTr("Please exit and restart Kube.") |
45 | } | ||
46 | Kube.Button { | ||
47 | anchors.topMargin: Kube.Units.largeSpacing | ||
48 | text: qsTr("Exit") | ||
49 | onClicked: { | ||
50 | app.close() | ||
51 | } | ||
45 | } | 52 | } |
46 | } | 53 | } |
47 | } | 54 | } |