Commit 6fe9f1b6 authored by Dan Chapman's avatar Dan Chapman
Browse files

Fix composer not showing confirmation dialog

parent fbd9766b
......@@ -4,10 +4,12 @@ import Ubuntu.Components 1.3
import Ubuntu.Components.Popups 1.3
import Dekko.Mail.API 1.0
import Dekko.Mail.Stores.Composer 1.0
import Dekko.Mail.Workers 1.0
import Dekko.Ubuntu.Dialogs 1.0
import Dekko.Ubuntu.Components 1.0
import MazDB 1.0
import PlugMan 1.0
import QuickFlux 1.0
import Dekko.Ubuntu.Components 1.0
Window {
id: window
......@@ -58,10 +60,14 @@ Window {
loadMode: ItemRegistry.LoadFirstEnabled
}
AppListener {
filter: PopupKeys.showDiscardDialog
onDispatched: {
PopupUtils.open(Qt.resolvedUrl("../dialogs/ConfirmationDialog.qml"), container, {id: message.id, title: message.title, text: message.text})
DialogWorker {
name: PopupKeys.popupComposer
dlgTarget: container
noticePopup: Component {
NoticePopup{}
}
confirmationPopup: Component {
ConfirmationDialog{}
}
}
}
......
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