mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-22 02:01:08 +07:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 33ccba5059 | |||
| 1485bb4a5d | |||
| a12c16aa33 |
@@ -47,6 +47,8 @@ PageType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
WarningType {
|
WarningType {
|
||||||
|
visible: !ServersModel.getProcessedServerData("isServerFromTelegramApi")
|
||||||
|
|
||||||
Layout.topMargin: 16
|
Layout.topMargin: 16
|
||||||
Layout.rightMargin: 16
|
Layout.rightMargin: 16
|
||||||
Layout.leftMargin: 16
|
Layout.leftMargin: 16
|
||||||
|
|||||||
@@ -98,6 +98,7 @@ PageType {
|
|||||||
property list<QtObject> serverActions: [
|
property list<QtObject> serverActions: [
|
||||||
check,
|
check,
|
||||||
reboot,
|
reboot,
|
||||||
|
deviceCountObject,
|
||||||
remove,
|
remove,
|
||||||
clear,
|
clear,
|
||||||
reset,
|
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 {
|
QtObject {
|
||||||
id: remove
|
id: remove
|
||||||
|
|
||||||
|
|||||||
@@ -99,6 +99,9 @@ PageType {
|
|||||||
|
|
||||||
PageController.goToPage(PageEnum.PageSettingsApiServerInfo)
|
PageController.goToPage(PageEnum.PageSettingsApiServerInfo)
|
||||||
} else {
|
} else {
|
||||||
|
if (ServersModel.getProcessedServerData("isServerFromTelegramApi")) {
|
||||||
|
ApiSettingsController.getAccountInfo(false)
|
||||||
|
}
|
||||||
PageController.goToPage(PageEnum.PageSettingsServerInfo)
|
PageController.goToPage(PageEnum.PageSettingsServerInfo)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user