mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-05-08 14:33:23 +00:00
feature: added warning label when config files have changed in premium configuration files menu (#1718)
* added warning label when config files have changed in premium configuration files display * moved warning display from PageSettingsApiNativeConfigs.qml to PageSettingsApiServerInfo.qml
This commit is contained in:
@@ -58,8 +58,9 @@ PageType {
|
||||
Layout.topMargin: 6
|
||||
|
||||
text: countryName
|
||||
descriptionText: isWorkerExpired ? qsTr("The configuration needs to be reissued") : ""
|
||||
descriptionColor: AmneziaStyle.color.vibrantRed
|
||||
descriptionText: isWorkerExpired ? qsTr("Download the update") : ""
|
||||
hideDescription: false
|
||||
descriptionColor: AmneziaStyle.color.mutedGray
|
||||
|
||||
leftImageSource: "qrc:/countriesFlags/images/flagKit/" + countryImageCode + ".svg"
|
||||
rightImageSource: isIssued ? "qrc:/images/controls/more-vertical.svg" : "qrc:/images/controls/download.svg"
|
||||
|
||||
@@ -187,7 +187,13 @@ PageType {
|
||||
|
||||
iconPath: "qrc:/images/controls/alert-circle.svg"
|
||||
|
||||
visible: ApiAccountInfoModel.data("hasExpiredWorker")
|
||||
visible: {
|
||||
for (let i = 0; i < ApiCountryModel.count; ++i) {
|
||||
if (ApiCountryModel.get(i).isWorkerExpired)
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
LabelWithButtonType {
|
||||
|
||||
Reference in New Issue
Block a user