mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-10 22:36:24 +00:00
add missing source comments
This commit is contained in:
parent
aeb8d2958d
commit
4e801c5336
@ -105,11 +105,14 @@ ScrollView {
|
|||||||
enabled: channelContextMenu.chatType !== Constants.chatTypePublic
|
enabled: channelContextMenu.chatType !== Constants.chatTypePublic
|
||||||
text: {
|
text: {
|
||||||
if (channelContextMenu.chatType === Constants.chatTypeOneToOne) {
|
if (channelContextMenu.chatType === Constants.chatTypeOneToOne) {
|
||||||
|
//% "View Profile"
|
||||||
return qsTrId("view-profile")
|
return qsTrId("view-profile")
|
||||||
}
|
}
|
||||||
if (channelContextMenu.chatType === Constants.chatTypePrivateGroupChat) {
|
if (channelContextMenu.chatType === Constants.chatTypePrivateGroupChat) {
|
||||||
|
//% "View Group"
|
||||||
return qsTrId("view-group")
|
return qsTrId("view-group")
|
||||||
}
|
}
|
||||||
|
//% "Share Chat"
|
||||||
return qsTrId("share-chat")
|
return qsTrId("share-chat")
|
||||||
}
|
}
|
||||||
icon.source: "../../../img/group.svg"
|
icon.source: "../../../img/group.svg"
|
||||||
@ -124,7 +127,6 @@ ScrollView {
|
|||||||
if (channelContextMenu.chatType === Constants.chatTypePrivateGroupChat) {
|
if (channelContextMenu.chatType === Constants.chatTypePrivateGroupChat) {
|
||||||
return groupInfoPopup.open()
|
return groupInfoPopup.open()
|
||||||
}
|
}
|
||||||
// return qsTrId("share-chat")
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -187,11 +189,14 @@ ScrollView {
|
|||||||
Action {
|
Action {
|
||||||
text: {
|
text: {
|
||||||
if (channelContextMenu.chatType === Constants.chatTypeOneToOne) {
|
if (channelContextMenu.chatType === Constants.chatTypeOneToOne) {
|
||||||
|
//% "Delete chat"
|
||||||
return qsTrId("delete-chat")
|
return qsTrId("delete-chat")
|
||||||
}
|
}
|
||||||
if (channelContextMenu.chatType === Constants.chatTypePrivateGroupChat) {
|
if (channelContextMenu.chatType === Constants.chatTypePrivateGroupChat) {
|
||||||
|
//% "Leave group"
|
||||||
return qsTrId("leave-group")
|
return qsTrId("leave-group")
|
||||||
}
|
}
|
||||||
|
//% "Leave chat"
|
||||||
return qsTrId("leave-chat")
|
return qsTrId("leave-chat")
|
||||||
}
|
}
|
||||||
icon.source: {
|
icon.source: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user