summary refs log tree commit diff
path: root/resources/qml/Root.qml
diff options
context:
space:
mode:
authorLoren Burkholder <computersemiexpert@outlook.com>2021-09-23 21:18:48 -0400
committerLoren Burkholder <computersemiexpert@outlook.com>2021-10-11 19:00:40 -0400
commit14488a8fe78f829dadf3899a1c50ab389d05dbe9 (patch)
treec18e36ccbd831a51fd85288d6a92a15ea494f130 /resources/qml/Root.qml
parentRemove unimplemented function declaration (diff)
downloadnheko-14488a8fe78f829dadf3899a1c50ab389d05dbe9.tar.xz
Use the same leave room dialog everywhere
This ports the leave room dialog to QML, everywhere. There are now no differences between the various leave dialogs.
Diffstat (limited to 'resources/qml/Root.qml')
-rw-r--r--resources/qml/Root.qml14
1 files changed, 14 insertions, 0 deletions
diff --git a/resources/qml/Root.qml b/resources/qml/Root.qml
index c73d1f1d..18130469 100644
--- a/resources/qml/Root.qml
+++ b/resources/qml/Root.qml
@@ -125,6 +125,13 @@ Page {
         }
     }
 
+    Component {
+        id: leaveRoomComponent
+
+        LeaveRoomDialog {
+        }
+    }
+
     Shortcut {
         sequence: "Ctrl+K"
         onActivated: {
@@ -209,6 +216,13 @@ Page {
             dialog.show();
         }
 
+        function onOpenLeaveRoomDialog(roomid) {
+            var dialog = leaveRoomComponent.createObject(timelineRoot, {
+                                                          "roomId": roomid
+                                                      });
+            dialog.open();
+        }
+
         target: TimelineManager
     }