Move popups to their own folder

This commit is contained in:
miruka
2019-09-09 08:57:38 -04:00
parent 6b26aa6d0b
commit c38cc9d3df
6 changed files with 9 additions and 9 deletions

View File

@@ -1,18 +0,0 @@
import QtQuick 2.12
import "../Base"
HBoxPopup {
summary.text: qsTr("Clear this room's messages?")
details.text: qsTr(
"The messages will only be removed on your side. " +
"They will be available again after you restart the application."
)
okText: qsTr("Clear")
box.focusButton: "ok"
onOk: py.callClientCoro(userId, "clear_events", [roomId])
property string userId: ""
property string roomId: ""
}

View File

@@ -128,7 +128,7 @@ Column {
icon.name: "clear-messages"
text: qsTr("Clear messages")
onTriggered: Utils.makePopup(
"Chat/ClearMessagesPopup.qml",
"Popups/ClearMessagesPopup.qml",
chatPage,
{userId: chatPage.userId, roomId: chatPage.roomId},
)