summary refs log tree commit diff
path: root/resources/qml/Root.qml
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2022-07-08 17:28:28 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2022-07-08 17:28:28 +0200
commit931855441a12b328afc0aecc1464af927199808b (patch)
tree38248e3f7eb1790e9f8bb7aaefb88c4584466808 /resources/qml/Root.qml
parentFix users with @room in the name pinging the whole room when replied to (diff)
downloadnheko-931855441a12b328afc0aecc1464af927199808b.tar.xz
Allow editing aliases
Diffstat (limited to 'resources/qml/Root.qml')
-rw-r--r--resources/qml/Root.qml27
1 files changed, 21 insertions, 6 deletions
diff --git a/resources/qml/Root.qml b/resources/qml/Root.qml
index 1ea26742..7cc41db9 100644
--- a/resources/qml/Root.qml
+++ b/resources/qml/Root.qml
@@ -55,13 +55,28 @@ Pane {
 
     }
 
-        function showPLEditor(settings) {
-            var dialog = plEditor.createObject(timelineRoot, {
-                "roomSettings": settings
-            });
-            dialog.show();
-            destroyOnClose(dialog);
+    function showAliasEditor(settings) {
+        var dialog = aliasEditor.createObject(timelineRoot, {
+            "roomSettings": settings
+        });
+        dialog.show();
+        destroyOnClose(dialog);
+    }
+
+    Component {
+        id: aliasEditor
+
+        AliasEditor {
         }
+    }
+
+    function showPLEditor(settings) {
+        var dialog = plEditor.createObject(timelineRoot, {
+            "roomSettings": settings
+        });
+        dialog.show();
+        destroyOnClose(dialog);
+    }
 
     Component {
         id: plEditor