mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-05-08 14:33:23 +00:00
feat: unlink device tab
This commit is contained in:
@@ -47,6 +47,8 @@ PageType {
|
||||
}
|
||||
|
||||
WarningType {
|
||||
visible: !ServersModel.getProcessedServerData("isServerFromTelegramApi")
|
||||
|
||||
Layout.topMargin: 16
|
||||
Layout.rightMargin: 16
|
||||
Layout.leftMargin: 16
|
||||
|
||||
@@ -98,6 +98,7 @@ PageType {
|
||||
property list<QtObject> serverActions: [
|
||||
check,
|
||||
reboot,
|
||||
deviceCountObject,
|
||||
remove,
|
||||
clear,
|
||||
reset,
|
||||
@@ -147,6 +148,22 @@ PageType {
|
||||
}
|
||||
}
|
||||
|
||||
QtObject {
|
||||
id: deviceCountObject
|
||||
|
||||
property bool isVisible: ServersModel.getProcessedServerData("isServerFromTelegramApi")
|
||||
readonly property string title: qsTr("Active Connections")
|
||||
readonly property string description: qsTr("Manage currently connected devices")
|
||||
readonly property var tColor: AmneziaStyle.color.lightGray
|
||||
readonly property string objectImageSource: "qrc:/images/controls/monitor.svg"
|
||||
readonly property bool isRichText: false
|
||||
readonly property var clickedHandler: function() {
|
||||
ApiSettingsController.getAccountInfo(false)
|
||||
ApiSettingsController.updateApiDevicesModel()
|
||||
PageController.goToPage(PageEnum.PageSettingsApiDevices)
|
||||
}
|
||||
}
|
||||
|
||||
QtObject {
|
||||
id: remove
|
||||
|
||||
|
||||
Reference in New Issue
Block a user