~nskaggs/ubuntu-calendar-app/apparmor-symlinks

264.1.1 by Kunal Parmar
Editing by eventtype
1
import QtQuick 2.0
2
import Ubuntu.Components 0.1
3
import Ubuntu.Components.Popups 0.1
4
5
Dialog {
6
    id: dialogue
7
8
    property var event;
9
10
    signal editEvent(var eventId);
11
12
    title: i18n.tr("Edit Event")
13
14
    text: i18n.tr('Edit only this event "'+event.displayLabel+'", or all events in the series?');
15
16
    Button {
17
        text: i18n.tr("Edit series")
18
        color: UbuntuColors.orange
19
        onClicked: {
20
            dialogue.editEvent(event.parentId);
21
            PopupUtils.close(dialogue)
22
        }
23
    }
24
25
    Button {
26
        text: i18n.tr("Edit this")
27
        color: UbuntuColors.orange
28
        onClicked: {
29
            dialogue.editEvent(event.itemId);
30
            PopupUtils.close(dialogue)
31
        }
32
    }
33
34
    Button {
35
        text: i18n.tr("Cancel")
36
        onClicked: PopupUtils.close(dialogue)
37
    }
38
}