Compare commits

...

3 Commits

Author SHA1 Message Date
MrMirDan
33ccba5059 update: number of connected devices 2026-01-29 13:06:32 +02:00
MrMirDan
1485bb4a5d update: reload api acc info 2026-01-28 14:24:54 +02:00
MrMirDan
a12c16aa33 feat: unlink device tab 2026-01-27 13:03:21 +02:00
3 changed files with 22 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: " + ApiAccountInfoModel.data("connectedDevices"))
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.updateApiCountryModel()
// ApiSettingsController.updateApiDevicesModel()
PageController.goToPage(PageEnum.PageSettingsApiDevices)
}
}
QtObject {
id: remove

View File

@@ -99,6 +99,9 @@ PageType {
PageController.goToPage(PageEnum.PageSettingsApiServerInfo)
} else {
if (ServersModel.getProcessedServerData("isServerFromTelegramApi")) {
ApiSettingsController.getAccountInfo(false)
}
PageController.goToPage(PageEnum.PageSettingsServerInfo)
}
}