Commit 54c0e1ae authored by Karel Slaný's avatar Karel Slaný

Exposed top buttons in data-box search page.

parent 42de783a
......@@ -86,33 +86,29 @@ Item {
spacing: defaultMargin
anchors.right: parent.right
anchors.rightMargin: defaultMargin
Image {
id: searchButton
AccessibleImageButton {
id: filterButton
visible: false
anchors.verticalCenter: parent.verticalCenter
sourceSize.height: imgHeightHeader
source: "qrc:/ui/magnify.svg"
MouseArea {
anchors.fill: parent
onClicked: {
databoxList.anchors.top = filterBar.bottom
filterBar.visible = true
filter.forceActiveFocus()
Qt.inputMethod.show()
}
accessibleName: qsTr("Filter data boxes.")
onClicked: {
databoxList.anchors.top = filterBar.bottom
filterBar.visible = true
filter.forceActiveFocus()
Qt.inputMethod.show()
}
}
Image {
AccessibleImageButton {
id: actionButton
anchors.verticalCenter: parent.verticalCenter
sourceSize.height: imgHeightHeader
source: "qrc:/ui/account-search.svg"
MouseArea {
anchors.fill: parent
onClicked: {
searchPhraseText.focus = false
searchPanel.doSearchRequest()
}
accessibleName: qsTr("Search data boxes.")
onClicked: {
searchPhraseText.focus = false
searchPanel.doSearchRequest()
}
}
}
......@@ -403,10 +399,10 @@ Item {
isds.findDataboxFulltext(userName, foundBoxModel, searchPhraseText.text, searchType, searchScope, page)
if (foundBoxModel.rowCount() <= 0) {
emptyList.visible = true
searchButton.visible = false
filterButton.visible = false
} else {
emptyList.visible = false
searchButton.visible = true
filterButton.visible = true
}
if (recipBoxModel != null) {
foundBoxModel.selectEntries(recipBoxModel.boxIds(), 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