2
0
mirror of https://github.com/status-im/status-desktop.git synced 2025-03-02 15:31:04 +00:00
status-desktop/ui/imports/shared/controls/chat/LinkPreviewSettingsCardMenu.qml

38 lines
779 B
QML
Raw Permalink Normal View History

import StatusQ.Popups 0.1
StatusMenu {
id: root
signal enableLinkPreviewForThisMessage
signal enableLinkPreview
signal disableLinkPreview
hideDisabledItems: false
StatusAction {
text: qsTr("Link previews")
enabled: false
}
StatusAction {
text: qsTr("Show for this message")
icon.name: "show"
onTriggered: root.enableLinkPreviewForThisMessage()
}
StatusAction {
text: qsTr("Always show previews")
icon.name: "show"
onTriggered: root.enableLinkPreview()
}
StatusMenuSeparator { }
StatusAction {
text: qsTr("Never show previews")
icon.name: "hide"
type: StatusAction.Type.Danger
onTriggered: root.disableLinkPreview()
}
}