Merge lp:~mzanetti/reminders-app/single-account-setup into lp:reminders-app

Proposed by Michael Zanetti
Status: Merged
Approved by: Riccardo Padovani
Approved revision: 367
Merged at revision: 370
Proposed branch: lp:~mzanetti/reminders-app/single-account-setup
Merge into: lp:reminders-app
Diff against target: 74 lines (+10/-13)
2 files modified
src/app/qml/reminders.qml (+8/-7)
src/app/qml/ui/AccountSelectorPage.qml (+2/-6)
To merge this branch: bzr merge lp:~mzanetti/reminders-app/single-account-setup
Reviewer Review Type Date Requested Status
Riccardo Padovani Approve
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Review via email: mp+251649@code.launchpad.net

Commit message

Only keep a single AccountSetup declaration

To post a comment you must log in.
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Riccardo Padovani (rpadovani) wrote :

lgtm

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/app/qml/reminders.qml'
--- src/app/qml/reminders.qml 2015-03-01 22:32:41 +0000
+++ src/app/qml/reminders.qml 2015-03-03 20:07:09 +0000
@@ -104,7 +104,7 @@
104 accountPage.destroy(100)104 accountPage.destroy(100)
105 }105 }
106 var component = Qt.createComponent(Qt.resolvedUrl("ui/AccountSelectorPage.qml"));106 var component = Qt.createComponent(Qt.resolvedUrl("ui/AccountSelectorPage.qml"));
107 accountPage = component.createObject(root, { accounts: accounts, unauthorizedAccounts: unauthorizedAccounts });107 accountPage = component.createObject(root, { accounts: accounts, unauthorizedAccounts: unauthorizedAccounts, oaSetup: setup });
108 accountPage.accountSelected.connect(function(username, handle) { accountService.startAuthentication(username, handle); pagestack.pop(); root.accountPage = null });108 accountPage.accountSelected.connect(function(username, handle) { accountService.startAuthentication(username, handle); pagestack.pop(); root.accountPage = null });
109 pagestack.push(accountPage);109 pagestack.push(accountPage);
110 }110 }
@@ -548,6 +548,7 @@
548 page: AccountSelectorPage {548 page: AccountSelectorPage {
549 accounts: accounts549 accounts: accounts
550 unauthorizedAccounts: true550 unauthorizedAccounts: true
551 oaSetup: setup
551 onAccountSelected: {552 onAccountSelected: {
552 accountService.startAuthentication(username, handle)553 accountService.startAuthentication(username, handle)
553 rootTabs.selectedTabIndex = 0;554 rootTabs.selectedTabIndex = 0;
@@ -593,6 +594,12 @@
593 }594 }
594 }595 }
595596
597 Setup {
598 id: setup
599 applicationId: "com.ubuntu.reminders_reminders"
600 providerId: useSandbox ? "com.ubuntu.reminders_evernote-account-plugin-sandbox" : "com.ubuntu.reminders_evernote-account-plugin"
601 }
602
596 Component {603 Component {
597 id: noAccountDialog604 id: noAccountDialog
598 Dialog {605 Dialog {
@@ -613,12 +620,6 @@
613 }620 }
614 }621 }
615622
616 Setup {
617 id: setup
618 applicationId: "com.ubuntu.reminders_reminders"
619 providerId: useSandbox ? "com.ubuntu.reminders_evernote-account-plugin-sandbox" : "com.ubuntu.reminders_evernote-account-plugin"
620 }
621
622 RowLayout {623 RowLayout {
623 Button {624 Button {
624 objectName: "openAccountButton"625 objectName: "openAccountButton"
625626
=== modified file 'src/app/qml/ui/AccountSelectorPage.qml'
--- src/app/qml/ui/AccountSelectorPage.qml 2015-03-01 22:11:43 +0000
+++ src/app/qml/ui/AccountSelectorPage.qml 2015-03-03 20:07:09 +0000
@@ -30,14 +30,10 @@
3030
31 property alias accounts: optionSelector.model31 property alias accounts: optionSelector.model
32 property bool unauthorizedAccounts32 property bool unauthorizedAccounts
33 property var oaSetup: null
3334
34 signal accountSelected(string username, var handle)35 signal accountSelected(string username, var handle)
3536
36 Setup {
37 id: setup
38 applicationId: "com.ubuntu.reminders_reminders"
39 providerId: useSandbox ? "evernote-sandbox" : "evernote"
40 }
4137
42 Column {38 Column {
43 anchors { fill: parent; margins: units.gu(2) }39 anchors { fill: parent; margins: units.gu(2) }
@@ -94,7 +90,7 @@
94 width: parent.width - units.gu(2)90 width: parent.width - units.gu(2)
95 text: i18n.tr("Add new account")91 text: i18n.tr("Add new account")
96 color: UbuntuColors.orange92 color: UbuntuColors.orange
97 onClicked: setup.exec()93 onClicked: root.oaSetup.exec()
98 }94 }
99 }95 }
10096

Subscribers

People subscribed via source and target branches