Commit 013de6a9 authored by Nicolas Fella's avatar Nicolas Fella Committed by Jonah Brüchert

rework actions

parent db69a588
......@@ -36,11 +36,6 @@ Kirigami.SwipeListItem {
contentItem: RowLayout {
KPeople.PersonActions {
id: personActions
personUri: listItem.personUri
}
RoundImage {
id: avatar
height: parent.height
......
......@@ -97,17 +97,9 @@ Kirigami.ScrollablePage {
personUri: model.personUri
actions: [
Kirigami.Action {
icon.name: "mail-message"
onTriggered: {
personActions.triggerAction(KPeople.TextChatAction)
}
},
Kirigami.Action {
icon.name: "call-start"
onTriggered: {
personActions.triggerAction(KPeople.AudioCallAction)
}
onTriggered: Qt.openUrlExternally("tel:" + model.phoneNumber);
}
]
......
......@@ -52,17 +52,7 @@ Kirigami.ScrollablePage {
}
actions {
left: Kirigami.Action {
iconName: "mail-message"
text: i18n("Write mail")
onTriggered: personActions.triggerAction(KPeople.SendEmailAction)
}
main: Kirigami.Action {
iconName: "call-start"
text: i18n("Make call")
onTriggered: personActions.triggerAction(KPeople.AudioCallAction)
}
right: Kirigami.Action {
iconName: "document-edit"
text: i18n("Edit")
onTriggered: {
......@@ -70,13 +60,6 @@ Kirigami.ScrollablePage {
}
}
contextualActions: [
Kirigami.Action {
iconName: "document-edit"
text: i18n("Edit")
onTriggered: {
pageStack.push(Qt.resolvedUrl("AddContactPage.qml"), {state: "update", person: personData.person})
}
},
Kirigami.Action {
iconName: "delete"
text: i18n("Delete contact")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment