chore: minor ui fixes
This commit is contained in:
parent
7a1bcfac90
commit
46d3ed76e3
7 changed files with 14 additions and 52 deletions
|
|
@ -245,7 +245,7 @@
|
|||
<file>ui/qml/DefaultVpn/Controls/TextTypes/XSmallTextType.qml</file>
|
||||
<file>ui/qml/DefaultVpn/Controls/ButtonType.qml</file>
|
||||
<file>ui/qml/DefaultVpn/Pages/PageSettingsServersList.qml</file>
|
||||
<file>ui/qml/DefaultVpn/Pages/PageCountrySelector.qml</file>
|
||||
<file>ui/qml/DefaultVpn/Pages/PageSettingsApiAvailableCountries.qml</file>
|
||||
<file>ui/qml/DefaultVpn/Pages/PageSettingsApiServerInfo.qml</file>
|
||||
<file>ui/qml/DefaultVpn/Controls/TextTypes/Header1TextType.qml</file>
|
||||
<file>ui/qml/DefaultVpn/Controls/TextTypes/Header3TextType.qml</file>
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@ namespace PageLoader
|
|||
PageAbout,
|
||||
|
||||
PageSettingsServersList,
|
||||
PageCountrySelector,
|
||||
PageSettings,
|
||||
PageSettingsServerData,
|
||||
PageSettingsServerInfo,
|
||||
|
|
|
|||
|
|
@ -64,21 +64,21 @@ Popup {
|
|||
|
||||
BlueButtonNoBorder {
|
||||
Layout.fillWidth: true
|
||||
text: root.cancelButtonText
|
||||
text: root.confirmButtonText
|
||||
onClicked: {
|
||||
if (root.onCancel) {
|
||||
root.onCancel()
|
||||
if (root.onConfirm) {
|
||||
root.onConfirm()
|
||||
}
|
||||
root.close()
|
||||
}
|
||||
}
|
||||
|
||||
WhiteButtonWithBorder {
|
||||
WhiteButtonNoBorder {
|
||||
Layout.fillWidth: true
|
||||
text: root.confirmButtonText
|
||||
text: root.cancelButtonText
|
||||
onClicked: {
|
||||
if (root.onConfirm) {
|
||||
root.onConfirm()
|
||||
if (root.onCancel) {
|
||||
root.onCancel()
|
||||
}
|
||||
root.close()
|
||||
}
|
||||
|
|
@ -106,4 +106,4 @@ Popup {
|
|||
color: Style.color.transparentWhite
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -117,7 +117,7 @@ Page {
|
|||
MouseArea {
|
||||
anchors.fill: parent
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
onClicked: Qt.openUrlExternally("https://dfvpn.com/policy")
|
||||
onClicked: Qt.openUrlExternally("https://dfvpn.com/privacy")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -129,4 +129,4 @@ Page {
|
|||
color: Style.color.gray7
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ Page {
|
|||
return
|
||||
}
|
||||
ServersModel.setProcessedServerIndex(ServersModel.defaultIndex)
|
||||
PageController.goToPage(PageEnum.PageCountrySelector)
|
||||
PageController.goToPage(PageEnum.PageSettingsApiAvailableCountries)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -14,31 +14,6 @@ import "../Controls/TextTypes"
|
|||
Page {
|
||||
id: root
|
||||
|
||||
Component.onCompleted: checkSubscriptionStatus()
|
||||
|
||||
// This timer is used to delay the opening of the expired subscription dialog
|
||||
// to avoid conflicts of blur effect with transition to the page animation
|
||||
Timer {
|
||||
id: subscriptionDialogTimer
|
||||
interval: 280
|
||||
repeat: false
|
||||
onTriggered: expiredSubscriptionDialog.open()
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: ApiAccountInfoModel
|
||||
function onModelReset() {
|
||||
checkSubscriptionStatus()
|
||||
}
|
||||
}
|
||||
|
||||
function checkSubscriptionStatus() {
|
||||
const status = ApiAccountInfoModel.data("subscriptionStatus")
|
||||
if (status === "expired") {
|
||||
subscriptionDialogTimer.start()
|
||||
}
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
anchors.fill: parent
|
||||
spacing: 0
|
||||
|
|
@ -98,7 +73,7 @@ Page {
|
|||
Layout.topMargin: 24
|
||||
Layout.fillWidth: true
|
||||
|
||||
text: qsTr("Reset API configuration")
|
||||
text: qsTr("Reload API configuration")
|
||||
|
||||
onClicked: {
|
||||
if (ServersModel.isDefaultServerCurrentlyProcessed() && ConnectionController.isConnected) {
|
||||
|
|
@ -164,16 +139,4 @@ Page {
|
|||
PageController.showBusyIndicator(false)
|
||||
}
|
||||
}
|
||||
|
||||
ConfirmationDialog {
|
||||
id: expiredSubscriptionDialog
|
||||
title: qsTr("Amnezia Premium subscription has expired")
|
||||
description: qsTr("Order a new subscription")
|
||||
confirmButtonText: qsTr("Go to order")
|
||||
cancelButtonText: qsTr("Close")
|
||||
|
||||
onConfirm: function() {
|
||||
Qt.openUrlExternally("https://storage.googleapis.com/kldscp/vpnpay.io/ru/amnezia-premium")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue