feat: unlink device tab

This commit is contained in:
MrMirDan
2026-01-27 13:03:21 +02:00
parent f73792844c
commit a12c16aa33
2 changed files with 19 additions and 0 deletions

View File

@@ -47,6 +47,8 @@ PageType {
}
WarningType {
visible: !ServersModel.getProcessedServerData("isServerFromTelegramApi")
Layout.topMargin: 16
Layout.rightMargin: 16
Layout.leftMargin: 16

View File

@@ -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