mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-05-08 14:33:23 +00:00
update: xray server can be removed and rebooted
This commit is contained in:
4
client/images/controls/arrow-down.svg
Normal file
4
client/images/controls/arrow-down.svg
Normal file
@@ -0,0 +1,4 @@
|
||||
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M9 3.75V14.25" stroke="#D7D8DB" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M14.25 9L9 14.25L3.75 9" stroke="#D7D8DB" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 327 B |
4
client/images/controls/arrow-up.svg
Normal file
4
client/images/controls/arrow-up.svg
Normal file
@@ -0,0 +1,4 @@
|
||||
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M9 14.25V3.75" stroke="#D7D8DB" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M3.75 9L9 3.75L14.25 9" stroke="#D7D8DB" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 326 B |
@@ -7,8 +7,10 @@
|
||||
<file>images/controls/amnezia.svg</file>
|
||||
<file>images/controls/app.svg</file>
|
||||
<file>images/controls/archive-restore.svg</file>
|
||||
<file>images/controls/arrow-down.svg</file>
|
||||
<file>images/controls/arrow-left.svg</file>
|
||||
<file>images/controls/arrow-right.svg</file>
|
||||
<file>images/controls/arrow-up.svg</file>
|
||||
<file>images/controls/bug.svg</file>
|
||||
<file>images/controls/check.svg</file>
|
||||
<file>images/controls/chevron-down.svg</file>
|
||||
|
||||
@@ -29,7 +29,7 @@ PageType {
|
||||
|
||||
readonly property string title: qsTr("Configuration Last Update")
|
||||
readonly property string contentKey: "20 dec 2024 22:10"
|
||||
readonly property string objectImageSource: "qrc:/images/controls/info.svg" // reload img
|
||||
readonly property string objectImageSource: "qrc:/images/controls/refresh-cw.svg"
|
||||
readonly property bool isRichText: true
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ PageType {
|
||||
|
||||
readonly property string title: qsTr("Send")
|
||||
readonly property string contentKey: "48,9 MB"
|
||||
readonly property string objectImageSource: "qrc:/images/controls/history.svg" // arrow-up img
|
||||
readonly property string objectImageSource: "qrc:/images/controls/arrow-up.svg"
|
||||
readonly property bool isRichText: false
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ PageType {
|
||||
|
||||
readonly property string title: qsTr("Downloaded")
|
||||
readonly property string contentKey: "2,78 GB"
|
||||
readonly property string objectImageSource: "qrc:/images/controls/monitor.svg" // arrow-down img
|
||||
readonly property string objectImageSource: "qrc:/images/controls/arrow-down.svg"
|
||||
readonly property bool isRichText: false
|
||||
}
|
||||
|
||||
@@ -121,10 +121,10 @@ PageType {
|
||||
spacing: 0
|
||||
/*
|
||||
Connections {
|
||||
target: ApiAccountInfoModel
|
||||
target: ServersModel
|
||||
|
||||
function onModelReset() {
|
||||
delegateItem.rightText = ApiAccountInfoModel.data(contentKey)
|
||||
delegateItem.rightText = ServersModel.data(contentKey)
|
||||
}
|
||||
}
|
||||
*/
|
||||
@@ -136,7 +136,7 @@ PageType {
|
||||
|
||||
imageSource: objectImageSource
|
||||
leftText: title
|
||||
rightText: contentKey // ApiAccountInfoModel.data(contentKey)
|
||||
rightText: contentKey // ServersModel.data(contentKey)
|
||||
rightTextFormat: isRichText ? Text.RichText : Text.PlainText
|
||||
|
||||
visible: rightText !== ""
|
||||
@@ -174,8 +174,7 @@ PageType {
|
||||
PageController.showNotificationMessage(qsTr("Cannot reload config during active connection"))
|
||||
} else {
|
||||
PageController.showBusyIndicator(true)
|
||||
// TODO: server config reload function
|
||||
PageController.showNotificationMessage(qsTr("Config reloaded"))
|
||||
InstallController.rebootProcessedServer()
|
||||
PageController.showBusyIndicator(false)
|
||||
}
|
||||
}
|
||||
@@ -210,8 +209,7 @@ PageType {
|
||||
PageController.showNotificationMessage(qsTr("Cannot remove server during active connection"))
|
||||
} else {
|
||||
PageController.showBusyIndicator(true)
|
||||
// TODO: server remove function
|
||||
PageController.showNotificationMessage(qsTr("Server removed"))
|
||||
InstallController.removeProcessedServer()
|
||||
PageController.showBusyIndicator(false)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user