Fix up components

This commit is contained in:
Loren Burkholder 2021-07-17 16:16:18 -04:00
parent 4ddcff2300
commit 5d9556722f

View file

@ -47,6 +47,13 @@ Page {
}
Component {
id: roomMembersComponent
RoomMembers {
}
}
Component {
id: mobileCallInviteDialog
@ -63,6 +70,20 @@ Page {
}
Component {
id: deviceVerificationDialog
DeviceVerification {
}
}
Component {
id: inviteDialog
InviteDialog {
}
}
Shortcut {
sequence: "Ctrl+K"
onActivated: {
@ -82,20 +103,6 @@ Page {
onActivated: Rooms.previousRoom()
}
Component {
id: deviceVerificationDialog
DeviceVerification {
}
}
Component {
id: inviteDialog
InviteDialog {
}
}
Connections {
target: TimelineManager
onNewDeviceVerificationRequest: {
@ -123,18 +130,18 @@ Page {
}
Connections {
target: TimelineManager.timeline
target: Rooms.currentRoom
onOpenRoomMembersDialog: {
var membersDialog = roomMembersComponent.createObject(timelineRoot, {
"members": members,
"roomName": TimelineManager.timeline.roomName
"roomName": Rooms.currentRoom.roomName
});
membersDialog.show();
}
}
Connections {
target: TimelineManager.timeline
target: Rooms.currentRoom
onOpenRoomSettingsDialog: {
var roomSettings = roomSettingsComponent.createObject(timelineRoot, {
"roomSettings": settings
@ -144,11 +151,11 @@ Page {
}
Connections {
target: TimelineManager.timeline
target: Rooms.currentRoom
onOpenInviteUsersDialog: {
var dialog = inviteDialog.createObject(timelineRoot, {
"roomId": TimelineManager.timeline.roomId,
"roomName": TimelineManager.timeline.roomName
"roomId": Rooms.currentRoom.roomId,
"roomName": Rooms.currentRoom.roomName
});
dialog.show();
}