From 73abaf55495411cbd62d11357c316f31c9af0959 Mon Sep 17 00:00:00 2001 From: Valentin Buira Date: Fri, 15 Nov 2024 13:10:57 +0100 Subject: [PATCH] Add link to pricing if not support for subscription --- app/qml/dialogs/MMMonthlyContributorsLimitDialog.qml | 2 +- app/qml/main.qml | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/app/qml/dialogs/MMMonthlyContributorsLimitDialog.qml b/app/qml/dialogs/MMMonthlyContributorsLimitDialog.qml index b69bd93ce..9af2baebc 100644 --- a/app/qml/dialogs/MMMonthlyContributorsLimitDialog.qml +++ b/app/qml/dialogs/MMMonthlyContributorsLimitDialog.qml @@ -24,7 +24,7 @@ MMComponents.MMDrawerDialog { description: qsTr( "Upgrade your subscription or wait until next month for the limit to reset." ) - primaryButton.text: apiSupportsSubscription ? qsTr("Manage account") : "" + primaryButton.text: apiSupportsSubscription ? qsTr("Manage account") : qsTr("Upgrade") secondaryButton.text: qsTr("Cancel") onPrimaryButtonClicked: { diff --git a/app/qml/main.qml b/app/qml/main.qml index 4947e881b..b68951576 100644 --- a/app/qml/main.qml +++ b/app/qml/main.qml @@ -720,7 +720,14 @@ ApplicationWindow { apiSupportsSubscription: __merginApi.apiSupportsSubscriptions - onManageAccountClicked: Qt.openUrlExternally(__inputHelp.merginSubscriptionLink) + onManageAccountClicked: function() { + if(__merginApi.apiSupportsSubscriptions) { + Qt.openUrlExternally(__inputHelp.merginSubscriptionLink) + } + else { + Qt.openUrlExternally("https://www.merginmaps.com/pricing") + } + } } MMProjectLimitDialog {