mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-05-08 14:33:23 +00:00
Compare commits
3 Commits
4.8.15.0
...
feat/bot-k
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
33ccba5059 | ||
|
|
1485bb4a5d | ||
|
|
a12c16aa33 |
@@ -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: " + 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
|
||||
|
||||
|
||||
@@ -99,6 +99,9 @@ PageType {
|
||||
|
||||
PageController.goToPage(PageEnum.PageSettingsApiServerInfo)
|
||||
} else {
|
||||
if (ServersModel.getProcessedServerData("isServerFromTelegramApi")) {
|
||||
ApiSettingsController.getAccountInfo(false)
|
||||
}
|
||||
PageController.goToPage(PageEnum.PageSettingsServerInfo)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user