mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Fix reply button visibility after reply field opened and reply text sent
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
afc1cdde20
commit
d986b47a21
@ -19,6 +19,8 @@ Repeater {
|
||||
|
||||
property Flickable flickable
|
||||
|
||||
property bool talkReplyButtonVisible: true
|
||||
|
||||
signal triggerAction(int actionIndex)
|
||||
signal showReplyField()
|
||||
|
||||
@ -46,5 +48,7 @@ Repeater {
|
||||
textColorHovered: Style.currentUserHeaderTextColor
|
||||
contentsFont.bold: true
|
||||
bgColor: Style.currentUserHeaderColor
|
||||
|
||||
visible: verb !== "REPLY" || (verb === "REPLY" && root.talkReplyButtonVisible)
|
||||
}
|
||||
}
|
||||
|
||||
@ -256,7 +256,7 @@ RowLayout {
|
||||
ActivityItemActions {
|
||||
id: activityActions
|
||||
|
||||
visible: !isFileActivityList && activityData.linksForActionButtons.length > 0 && !isTalkReplyOptionVisible
|
||||
visible: !isFileActivityList && activityData.linksForActionButtons.length > 0
|
||||
|
||||
Layout.fillWidth: true
|
||||
Layout.leftMargin: Style.trayListItemIconSize + Style.trayHorizontalMargin
|
||||
@ -273,6 +273,7 @@ RowLayout {
|
||||
onTriggerAction: activityModel.slotTriggerAction(activityData.activityIndex, actionIndex)
|
||||
|
||||
onShowReplyField: isTalkReplyOptionVisible = true
|
||||
talkReplyButtonVisible: root.activityData.messageSent === "" && !isTalkReplyOptionVisible
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user