@@ -31,8 +31,6 @@ PreviewWidget {
3131 implicitHeight: paymentButton.implicitHeight
3232 implicitWidth: paymentButton.implicitWidth
3333
34− property bool processActive: false
35−
3634 Button {
3735 id: paymentButton
3836 objectName: "paymentButton"
@@ -43,11 +41,10 @@ PreviewWidget {
4341 paymentClient.start();
4442 root.processActive = true;
4543 }
46− enabled: !root.processActive
4744 anchors.right: parent.right
4845 width: (root.width - units.gu(1)) / 2
49− opacity: root.processActive ? 0 : 1
50− Behavior on opacity { PropertyAnimation {duration: UbuntuAnimation.SlowDuration}}
46+ visible: opacity == 0 ? false : true
47+ Behavior on opacity { PropertyAnimation {duration: UbuntuAnimation.FastDuration}}
5148
5249 Payments {
5350 id: paymentClient
@@ -69,10 +66,10 @@ PreviewWidget {
6966 ProgressBar {
7067 id: loadingBar
7168 indeterminate: true
72− anchors.right: parent.right
73− width: (root.width - units.gu(1)) / 2
74− opacity: root.processActive ? 1 : 0
69+ anchors.fill: paymentButton
70+ opacity: 1 - paymentsButton.opacity
71+ visible: opacity == 0 ? false : true
7572
76− Behavior on opacity { PropertyAnimation {duration: UbuntuAnimation.SlowDuration}}
73+ Behavior on opacity { PropertyAnimation {duration: UbuntuAnimation.FastDuration}}
7774 }
7875}