Merge lp:~twstd-dev/ubuntu-calendar-app/1359323 into lp:ubuntu-calendar-app

Proposed by twstd
Status: Merged
Approved by: Mihir Soni
Approved revision: 419
Merged at revision: 427
Proposed branch: lp:~twstd-dev/ubuntu-calendar-app/1359323
Merge into: lp:ubuntu-calendar-app
Diff against target: 57 lines (+34/-3)
1 file modified
AgendaView.qml (+34/-3)
To merge this branch: bzr merge lp:~twstd-dev/ubuntu-calendar-app/1359323
Reviewer Review Type Date Requested Status
Mihir Soni Approve
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Alan Pope 🍺🐧🐱 πŸ¦„ (community) Needs Fixing
Review via email: mp+232140@code.launchpad.net

Commit message

A fix for Bug #1359323

Description of the change

A fix for Bug #1359323

To post a comment you must log in.
Revision history for this message
Mihir Soni (mihirsoni) wrote :

Hi,

Thanks for MR, I guess you misunderstood the bug.

No Upcoming events should be visible when user have calendar enable and there are no events.

when you've no calendar enabled then it should say , You have no calendars enabled.

review: Needs Fixing
Revision history for this message
Mihir Soni (mihirsoni) wrote :

It looks great, just one small fix I have mentioned in inline code comment ,please check.

review: Needs Fixing
Revision history for this message
twstd (twstd-dev) wrote :

Updated

Revision history for this message
Mihir Soni (mihirsoni) wrote :

thanks a lot for your MR.
It works great,though i got some two bugs I found. I'll report them.

review: Approve
Revision history for this message
Mihir Soni (mihirsoni) wrote :

I'll wait for Jenkins to run and then will Top approve this MR.

Revision history for this message
twstd (twstd-dev) wrote :

> i got some two bugs I found. I'll report them.

Bring them on! % )

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :

FAILED: Continuous integration, rev:418
No commit message was specified in the merge proposal. Click on the following link and set the commit message (if you want a jenkins rebuild you need to trigger it yourself):
https://code.launchpad.net/~twstd-dev/ubuntu-calendar-app/1359323/+merge/232140/+edit-commit-message

http://91.189.93.70:8080/job/ubuntu-calendar-app-ci/716/
Executed test runs:
    SUCCESS: http://91.189.93.70:8080/job/generic-mediumtests-utopic/1708
        deb: http://91.189.93.70:8080/job/generic-mediumtests-utopic/1708/artifact/work/output/*zip*/output.zip
    SUCCESS: http://91.189.93.70:8080/job/ubuntu-calendar-app-utopic-amd64-ci/274

Click here to trigger a rebuild:
http://91.189.93.70:8080/job/ubuntu-calendar-app-ci/716/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

Looks like a commit message got added :-) Re-approved.

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Alan Pope 🍺🐧🐱 πŸ¦„ (popey) wrote :

This merge fails to run autopilot successfully in jenkins on the desktop and fails on my nexus 4 locally. Can you please look at the AP failures?

http://paste.ubuntu.com/8214040/

review: Needs Fixing
Revision history for this message
Kunal Parmar (pkunal-parmar) wrote :

added one comment

419. By twstd

Replace hardcoded margin value with responsive unit

Revision history for this message
twstd (twstd-dev) wrote :

good call!

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
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
Mihir Soni (mihirsoni) wrote :

FInally , Jenkins has resolved issues.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'AgendaView.qml'
2--- AgendaView.qml 2014-08-28 13:05:12 +0000
3+++ AgendaView.qml 2014-09-02 19:04:40 +0000
4@@ -35,6 +35,14 @@
5 eventList.positionViewAtBeginning();
6 }
7
8+ function hasEnabledCalendars() {
9+ var enabled_calendars = eventListModel.getCollections().filter( function( item ) {
10+ return item.extendedMetaData( "collection-selected" );
11+ } );
12+
13+ return !!enabled_calendars.length;
14+ }
15+
16 EventListModel {
17 id: eventListModel
18 startPeriod: currentDay.midnight();
19@@ -58,12 +66,35 @@
20 z:2
21 }
22
23- Label{
24- text: i18n.tr("No upcoming events")
25- visible: eventListModel.itemCount === 0
26+ Label {
27+ id: noEventsOrCalendarsLabel
28+ text: {
29+ var default_title = i18n.tr( "No upcoming events" );
30+
31+ if ( !root.hasEnabledCalendars() ) {
32+ default_title = i18n.tr("You have no calendars enabled")
33+ }
34+
35+ return default_title;
36+ }
37+ visible: !root.hasEnabledCalendars() || !eventListModel.itemCount
38 anchors.centerIn: parent
39 }
40
41+ Button {
42+ text: i18n.tr( "Enbale calendars" )
43+ visible: !root.hasEnabledCalendars()
44+ anchors.top: noEventsOrCalendarsLabel.bottom
45+ anchors.horizontalCenter: noEventsOrCalendarsLabel.horizontalCenter
46+ anchors.topMargin: units.gu( 1.5 )
47+ color: UbuntuColors.orange
48+
49+ onClicked: {
50+ pageStack.push(Qt.resolvedUrl("CalendarChoicePopup.qml"),{"model":eventModel});
51+ pageStack.currentPage.collectionUpdated.connect(eventModel.delayedApplyFilter);
52+ }
53+ }
54+
55 ListView{
56 id: eventList
57 model: eventListModel

Subscribers

People subscribed via source and target branches

to status/vote changes: