2019-09-09 23:12:51 +10:00
|
|
|
import QtQuick 2.12
|
|
|
|
|
|
|
|
BoxPopup {
|
2019-12-14 08:11:01 +11:00
|
|
|
summary.text: qsTr("Leave <i>%1</i>?").arg(roomName)
|
|
|
|
summary.textFormat: Text.StyledText
|
2019-09-09 23:12:51 +10:00
|
|
|
details.text: qsTr(
|
|
|
|
"If this room is private, you will not be able to rejoin it."
|
|
|
|
)
|
|
|
|
okText: qsTr("Leave")
|
|
|
|
box.focusButton: "ok"
|
|
|
|
|
2019-09-10 10:24:29 +10:00
|
|
|
onOk: py.callClientCoro(userId, "room_leave", [roomId], leftCallback)
|
2019-09-09 23:12:51 +10:00
|
|
|
|
|
|
|
|
|
|
|
property string userId: ""
|
|
|
|
property string roomId: ""
|
|
|
|
property string roomName: ""
|
2019-09-10 10:24:29 +10:00
|
|
|
property var leftCallback: null
|
2019-09-09 23:12:51 +10:00
|
|
|
}
|