Fix up components

pull/595/head
Loren Burkholder 4 years ago
parent 4ddcff2300
commit 5d9556722f
  1. 47
      resources/qml/Root.qml

@ -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();
}

Loading…
Cancel
Save