parent
0f682658bc
commit
b6c78396f8
|
@ -24,7 +24,6 @@ StatusModal {
|
|||
|
||||
signal createCommunityChannel(string chName, string chDescription, string chCategoryId)
|
||||
signal editCommunityChannel(string chName, string chDescription, string chCategoryId)
|
||||
signal openPinnedMessagesPopup()
|
||||
|
||||
//% "New channel"
|
||||
header.title: qsTrId("create-channel-title")
|
||||
|
@ -164,29 +163,6 @@ StatusModal {
|
|||
width: parent.width
|
||||
height: 8
|
||||
}
|
||||
|
||||
StatusListItem {
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
//% "Pinned messages"
|
||||
title: qsTrId("pinned-messages")
|
||||
icon.name: "pin"
|
||||
components: [
|
||||
StatusIcon {
|
||||
icon: "chevron-down"
|
||||
rotation: 270
|
||||
color: Theme.palette.baseColor1
|
||||
}
|
||||
]
|
||||
|
||||
sensor.onClicked: {
|
||||
popup.openPinnedMessagesPopup()
|
||||
}
|
||||
}
|
||||
|
||||
Item {
|
||||
width: parent.width
|
||||
height: 8
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -226,19 +226,6 @@ ColumnLayout {
|
|||
channel: chatContentModule.chatDetails
|
||||
})
|
||||
}
|
||||
|
||||
onOpenPinnedMessagesList: {
|
||||
if(!chatContentModule) {
|
||||
console.debug("error on open pinned messages from context menu - chat content module is not set")
|
||||
return
|
||||
}
|
||||
Global.openPopup(pinnedMessagesPopupComponent, {
|
||||
store: rootStore,
|
||||
messageStore: messageStore,
|
||||
pinnedMessagesModel: chatContentModule.pinnedMessagesModel,
|
||||
messageToPin: ""
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -36,7 +36,6 @@ StatusPopupMenu {
|
|||
signal deleteCommunityChat(string chatId)
|
||||
signal leaveChat(string chatId)
|
||||
|
||||
signal openPinnedMessagesList(string chatId)
|
||||
signal createCommunityChannel(string chatId, string newName, string newDescription)
|
||||
signal editCommunityChannel(string chatId, string newName, string newDescription, string newCategory)
|
||||
|
||||
|
@ -143,9 +142,6 @@ StatusPopupMenu {
|
|||
onEditCommunityChannel: {
|
||||
root.editCommunityChannel(root.chatId, chName, chDescription, chCategoryId);
|
||||
}
|
||||
onOpenPinnedMessagesPopup: {
|
||||
root.openPinnedMessagesList(root.chatId, chName, chDescription);
|
||||
}
|
||||
onClosed: {
|
||||
destroy()
|
||||
}
|
||||
|
|
|
@ -330,17 +330,6 @@ Item {
|
|||
channelPosition // TODO change this to the signal once it is modifiable
|
||||
)
|
||||
}
|
||||
|
||||
onOpenPinnedMessagesList: {
|
||||
chatCommunitySectionModule.prepareChatContentModuleForChatId(chatId)
|
||||
let chatContentModule = chatCommunitySectionModule.getChatContentModule()
|
||||
Global.openPopup(pinnedMessagesPopupComponent, {
|
||||
store: root.store,
|
||||
messageStore: messageStore,
|
||||
pinnedMessagesModel: chatContentModule.pinnedMessagesModel,
|
||||
messageToPin: ""
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -301,17 +301,6 @@ Item {
|
|||
channel: chatContentModule.chatDetails
|
||||
})
|
||||
}
|
||||
|
||||
onOpenPinnedMessagesList: {
|
||||
chatCommunitySectionModule.prepareChatContentModuleForChatId(chatId)
|
||||
let chatContentModule = chatCommunitySectionModule.getChatContentModule()
|
||||
Global.openPopup(pinnedMessagesPopupComponent, {
|
||||
store: root.store,
|
||||
messageStore: messageStore,
|
||||
pinnedMessagesModel: chatContentModule.pinnedMessagesModel,
|
||||
messageToPin: ""
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue