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
=== modified file 'pay-ui/app/payui.qml'
--- pay-ui/app/payui.qml 2016-03-15 20:39:18 +0000
+++ pay-ui/app/payui.qml 2016-03-15 20:39:18 +0000
@@ -51,7 +51,7 @@
5151
52 useDeprecatedToolbar: false52 useDeprecatedToolbar: false
5353
54 property bool loading: true54 property bool loading: false
55 property bool purchasing: false55 property bool purchasing: false
56 property bool recentLogin: false56 property bool recentLogin: false
57 property bool cancellable: true57 property bool cancellable: true
@@ -209,8 +209,10 @@
209 }209 }
210210
211 function showLoading() {211 function showLoading() {
212 mainView.loading = true;212 if (!mainView.loading) {
213 PopupUtils.open(loadingDialogContainer);213 mainView.loading = true;
214 PopupUtils.open(loadingDialogContainer);
215 }
214 }216 }
215217
216 function hideLoading() {218 function hideLoading() {
217219
=== modified file 'pay-ui/app/ui/UbuntuPurchaseWebkit.qml'
--- pay-ui/app/ui/UbuntuPurchaseWebkit.qml 2016-03-15 20:39:18 +0000
+++ pay-ui/app/ui/UbuntuPurchaseWebkit.qml 2016-03-15 20:39:18 +0000
@@ -86,8 +86,8 @@
86 promptDialog: PromptDialog {}86 promptDialog: PromptDialog {}
87 beforeUnloadDialog: BeforeUnloadDialog {}87 beforeUnloadDialog: BeforeUnloadDialog {}
8888
89 onLoadingChanged: {89 onLoadingStateChanged: {
90 pageWebkit.loading(webView.loading);90 pageWebkit.loading(webView.loadProgress != 100);
91 }91 }
9292
93 onUrlChanged: {93 onUrlChanged: {

Subscribers

People subscribed via source and target branches

to all changes: