Move popups to their own folder
This commit is contained in:
@@ -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: ""
|
||||
}
|
@@ -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},
|
||||
)
|
||||
|
Reference in New Issue
Block a user