mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +03:00
Fix up components
This commit is contained in:
parent
4ddcff2300
commit
5d9556722f
1 changed files with 28 additions and 21 deletions
|
@ -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…
Reference in a new issue