From fac0f64d4b4f46b002dc9826fe11a3edeab9e7d2 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 2 Jan 2017 12:05:35 +0100 Subject: Reply and edit draft action. --- components/mail/contents/ui/main.qml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'components/mail/contents/ui') diff --git a/components/mail/contents/ui/main.qml b/components/mail/contents/ui/main.qml index 5fceaf30..39df6040 100644 --- a/components/mail/contents/ui/main.qml +++ b/components/mail/contents/ui/main.qml @@ -57,9 +57,6 @@ Controls2.ApplicationWindow { //END Actions //BEGIN ActionHandler - - //TODO - /* KubeAction.ActionHandler { actionId: "org.kde.kube.actions.reply" function isReady(context) { @@ -67,8 +64,8 @@ Controls2.ApplicationWindow { } function handler(context) { - var component = composerComponent.createObject(app) - component.loadMessage(context.mail, false) + composer.loadMessage(context.mail, false) + composer.open() } } @@ -78,11 +75,10 @@ Controls2.ApplicationWindow { return context.mail && context.isDraft; } function handler(context) { - var component= composerComponent.createObject(app, {"draftMessage": context.mail}) - component.loadMessage(context.mail, true) + composer.loadMessage(context.mail, true) + composer.open() } } - */ //END ActionHandler //Controller -- cgit v1.2.3