mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-10-23 03:26:59 +09:00
* refactor: focus controller refactoring * feat: update to new design system * feat: update to new desing system * chore: bump version
33 lines
757 B
QML
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()
|
|
}
|
|
}
|