Skip to content

Commit

Permalink
Add link to pricing if not support for subscription
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinBuira committed Nov 15, 2024
1 parent ccfb185 commit 73abaf5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/qml/dialogs/MMMonthlyContributorsLimitDialog.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
9 changes: 8 additions & 1 deletion app/qml/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

1 comment on commit 73abaf5

@inputapp-bot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iOS - version 24.11.694211 just submitted!

Please sign in to comment.