Files
amnezia-client/client/ui/qml/Components/CountriesEmptyState.qml
T
vkamn 11355e1de0 feat: new design system (#3280)
* refactor: focus controller refactoring

* feat: update to new design system

* feat: update to new desing system

* chore: bump version
2026-10-14 11:13:36 +08:00

33 lines
757 B
QML

import QtQuick
import Style 1.0
import "../Controls2"
EmptyStateType {
id: root
property bool isSearchResult: true
property string categoryName: ""
signal showAllRequested()
iconColor: AmneziaStyle.color.accentLight
title: {
if (root.categoryName !== "") {
return qsTr("Nothing found in \"%1\"").arg(root.categoryName)
}
return root.isSearchResult ? qsTr("Nothing found. Check the spelling or change your query")
: qsTr("No locations available yet")
}
ButtonType {
visible: root.isSearchResult || root.categoryName !== ""
variant: ButtonType.Text
text: qsTr("Show all")
onClicked: root.showAllRequested()
}
}