Verified Commit e80c5618 authored by Jonah Brüchert's avatar Jonah Brüchert 🌳

ChatPage: reorder actions with relevance in mind

parent cbce2175
Pipeline #12683 passed with stages
in 34 minutes and 40 seconds
......@@ -53,11 +53,18 @@ Kirigami.ScrollablePage {
title: chatName
keyboardNavigationEnabled: true
contextualActions: [
// Action to toggle the message search bar
Kirigami.Action {
visible: !isWritingSpoiler
icon.name: "password-show-off"
text: qsTr("Send a spoiler message")
onTriggered: isWritingSpoiler = true
id: searchAction
text: qsTr("Search")
icon.name: "search"
onTriggered: {
if (searchBar.active)
searchBar.close()
else
searchBar.open()
}
},
Kirigami.Action {
visible: true
......@@ -165,19 +172,11 @@ Kirigami.ScrollablePage {
sendMediaSheet.sendNewMessageType(kaidan.messageModel.chatPartner, type)
}
},
// Action to toggle the message search bar
Kirigami.Action {
id: searchAction
text: qsTr("Search")
icon.name: "search"
onTriggered: {
if (searchBar.active)
searchBar.close()
else
searchBar.open()
}
visible: !isWritingSpoiler
icon.name: "password-show-off"
text: qsTr("Send a spoiler message")
onTriggered: isWritingSpoiler = true
}
]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment