@@ -21,7 +21,7 @@ import Ubuntu.SystemImage 0.1
2121import ".." as LocalComponents
2222
2323LocalComponents.Page {
24− id: reportingPage
24+ id: systemUpdatePage
2525 objectName: "systemUpdatePage"
2626
2727 title: i18n.tr("Update Device")
@@ -38,6 +38,10 @@ LocalComponents.Page {
3838 topMargin: customMargin
3939 }
4040 spacing: units.gu(3)
41+ opacity: spinner.running ? 0.5 : 1
42+ Behavior on opacity {
43+ UbuntuNumberAnimation {}
44+ }
4145
4246 Label {
4347 anchors.left: parent.left
@@ -117,7 +121,10 @@ LocalComponents.Page {
117121 id: button
118122 objectName: "installButton"
119123 anchors.fill: parent
120− onClicked: SystemImage.applyUpdate(); // TODO mark the wizard to skip until the finished page for the next boot
124+ onClicked: {
125+ spinner.running = true;
126+ SystemImage.applyUpdate(); // TODO mark the wizard to skip until the finished page for the next boot
127+ }
121128 }
122129
123130 transformOrigin: Item.Top
@@ -131,6 +138,13 @@ LocalComponents.Page {
131138 }
132139 }
133140
141+ ActivityIndicator {
142+ id: spinner
143+ anchors.centerIn: systemUpdatePage
144+ running: false
145+ visible: running
146+ }
147+
134148 Component {
135149 id: forwardButton
136150 LocalComponents.StackButton {