Merge lp:~dobey/pay-service/addcard-page into lp:pay-service

Proposed by dobey
Status: Merged
Approved by: Charles Kerr
Approved revision: 125
Merged at revision: 100
Proposed branch: lp:~dobey/pay-service/addcard-page
Merge into: lp:pay-service
Prerequisite: lp:~dobey/pay-service/merge-payui
Diff against target: 40 lines (+7/-5)
2 files modified
pay-ui/app/payui.qml (+5/-3)
pay-ui/app/ui/UbuntuPurchaseWebkit.qml (+2/-2)
To merge this branch: bzr merge lp:~dobey/pay-service/addcard-page
Reviewer Review Type Date Requested Status
Charles Kerr (community) Approve
PS Jenkins bot (community) continuous-integration Needs Fixing
Review via email: mp+289090@code.launchpad.net

Commit message

Use new loadingStateChanged signal as new Ubuntu.Web breaks loadingChanged.

To post a comment you must log in.
lp:~dobey/pay-service/addcard-page updated
123. By dobey

Only pop up a loading dialog if not already showing one.
Use the loadProgress value as a metric for whether the page is loading or not.

124. By dobey

Link another bug that is fixed by these changes.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
lp:~dobey/pay-service/addcard-page updated
125. By dobey

Fix typo.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Charles Kerr (charlesk) wrote :

the .loading --> .loadProgress!=100 change is sketchy though...

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'pay-ui/app/payui.qml'
2--- pay-ui/app/payui.qml 2016-03-15 20:39:18 +0000
3+++ pay-ui/app/payui.qml 2016-03-15 20:39:18 +0000
4@@ -51,7 +51,7 @@
5
6 useDeprecatedToolbar: false
7
8- property bool loading: true
9+ property bool loading: false
10 property bool purchasing: false
11 property bool recentLogin: false
12 property bool cancellable: true
13@@ -209,8 +209,10 @@
14 }
15
16 function showLoading() {
17- mainView.loading = true;
18- PopupUtils.open(loadingDialogContainer);
19+ if (!mainView.loading) {
20+ mainView.loading = true;
21+ PopupUtils.open(loadingDialogContainer);
22+ }
23 }
24
25 function hideLoading() {
26
27=== modified file 'pay-ui/app/ui/UbuntuPurchaseWebkit.qml'
28--- pay-ui/app/ui/UbuntuPurchaseWebkit.qml 2016-03-15 20:39:18 +0000
29+++ pay-ui/app/ui/UbuntuPurchaseWebkit.qml 2016-03-15 20:39:18 +0000
30@@ -86,8 +86,8 @@
31 promptDialog: PromptDialog {}
32 beforeUnloadDialog: BeforeUnloadDialog {}
33
34- onLoadingChanged: {
35- pageWebkit.loading(webView.loading);
36+ onLoadingStateChanged: {
37+ pageWebkit.loading(webView.loadProgress != 100);
38 }
39
40 onUrlChanged: {

Subscribers

People subscribed via source and target branches

to all changes: