Compare commits
1 Commits
master
...
work/redst
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c9c6db8e04 |
@@ -30,6 +30,9 @@ SearchPage {
|
|||||||
*/
|
*/
|
||||||
property string senderId
|
property string senderId
|
||||||
|
|
||||||
|
// This requires client-side search we don't implement yet
|
||||||
|
readonly property bool canSearch: !room.usesEncryption
|
||||||
|
|
||||||
title: i18nc("@action:title", "Search Messages")
|
title: i18nc("@action:title", "Search Messages")
|
||||||
|
|
||||||
model: SearchModel {
|
model: SearchModel {
|
||||||
@@ -45,6 +48,9 @@ SearchPage {
|
|||||||
searchFieldPlaceholder: i18n("Find messages…")
|
searchFieldPlaceholder: i18n("Find messages…")
|
||||||
noSearchPlaceholderMessage: i18n("Enter text to start searching")
|
noSearchPlaceholderMessage: i18n("Enter text to start searching")
|
||||||
noResultPlaceholderMessage: i18n("No messages found")
|
noResultPlaceholderMessage: i18n("No messages found")
|
||||||
|
customPlaceholderIcon: "lock-symbolic"
|
||||||
|
customPlaceholderText: !canSearch ? i18n("Cannot search in encrypted rooms") : ""
|
||||||
|
enableSearch: canSearch
|
||||||
|
|
||||||
listVerticalLayoutDirection: ListView.BottomToTop
|
listVerticalLayoutDirection: ListView.BottomToTop
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user