fix(Chat): don't render "Copy Link" menu item if not desired
This adjust the rules to render the copy link menu item so that it aligns with what has been mentioned in #1943. Fixes #1943
This commit is contained in:
parent
98eea14da8
commit
907fbc21b8
|
@ -47,7 +47,7 @@ PopupMenu {
|
|||
|
||||
const numLinkUrls = messageContextMenu.linkUrls.split(" ").length
|
||||
copyLinkMenu.enabled = numLinkUrls > 1
|
||||
copyLinkAction.enabled = !!messageContextMenu.linkUrls && numLinkUrls === 1
|
||||
copyLinkAction.enabled = !!messageContextMenu.linkUrls && numLinkUrls === 1 && !emojiOnly && !messageContextMenu.isProfile
|
||||
popup();
|
||||
}
|
||||
|
||||
|
@ -174,7 +174,7 @@ PopupMenu {
|
|||
icon.source: "../../../img/profileActive.svg"
|
||||
icon.width: 16
|
||||
icon.height: 16
|
||||
enabled: !emojiOnly
|
||||
enabled: !emojiOnly && !copyLinkAction.enabled
|
||||
}
|
||||
Action {
|
||||
text: messageContextMenu.isProfile ?
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M4.25 8.5C4.66421 8.5 5 8.16421 5 7.75C5 7.33579 4.66421 7 4.25 7H4C1.79086 7 0 8.79086 0 11V16C0 18.2091 1.79086 20 4 20H9C11.2091 20 13 18.2091 13 16V15.75C13 15.3358 12.6642 15 12.25 15C11.8358 15 11.5 15.3358 11.5 15.75V16C11.5 17.3807 10.3807 18.5 9 18.5H4C2.61929 18.5 1.5 17.3807 1.5 16V11C1.5 9.61929 2.61929 8.5 4 8.5H4.25Z" fill="#4360DF"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M7 4C7 1.79086 8.79086 0 11 0H16C18.2091 0 20 1.79086 20 4V9C20 11.2091 18.2091 13 16 13H11C8.79086 13 7 11.2091 7 9V4ZM11 1.5H16C17.3807 1.5 18.5 2.61929 18.5 4V9C18.5 10.3807 17.3807 11.5 16 11.5H11C9.61929 11.5 8.5 10.3807 8.5 9V4C8.5 2.61929 9.61929 1.5 11 1.5Z" fill="#4360DF"/>
|
||||
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M3.16683 5.99967C3.44297 5.99967 3.66683 5.77582 3.66683 5.49967C3.66683 5.22353 3.44297 4.99967 3.16683 4.99967H3.00016C1.5274 4.99967 0.333496 6.19358 0.333496 7.66634V10.9997C0.333496 12.4724 1.5274 13.6663 3.00016 13.6663H6.3335C7.80626 13.6663 9.00016 12.4724 9.00016 10.9997V10.833C9.00016 10.5569 8.77631 10.333 8.50016 10.333C8.22402 10.333 8.00016 10.5569 8.00016 10.833V10.9997C8.00016 11.9201 7.25397 12.6663 6.3335 12.6663H3.00016C2.07969 12.6663 1.3335 11.9201 1.3335 10.9997V7.66634C1.3335 6.74587 2.07969 5.99967 3.00016 5.99967H3.16683Z" fill="#4360DF"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.00016 2.99967C5.00016 1.52692 6.19407 0.333008 7.66683 0.333008H11.0002C12.4729 0.333008 13.6668 1.52692 13.6668 2.99967V6.33301C13.6668 7.80577 12.4729 8.99967 11.0002 8.99967H7.66683C6.19407 8.99967 5.00016 7.80577 5.00016 6.33301V2.99967ZM7.66683 1.33301H11.0002C11.9206 1.33301 12.6668 2.0792 12.6668 2.99967V6.33301C12.6668 7.25348 11.9206 7.99967 11.0002 7.99967H7.66683C6.74636 7.99967 6.00016 7.25348 6.00016 6.33301V2.99967C6.00016 2.0792 6.74636 1.33301 7.66683 1.33301Z" fill="#4360DF"/>
|
||||
</svg>
|
||||
|
|
Before Width: | Height: | Size: 796 B After Width: | Height: | Size: 1.2 KiB |
Loading…
Reference in New Issue