fix(@desktop/keycard): clicking `Get Keycard` button should direct to purchase page

Fixes: #7027
This commit is contained in:
Sale Djenic 2022-10-14 11:13:27 +02:00 committed by saledjenic
parent 7e82b36509
commit 43011645f2
2 changed files with 2 additions and 1 deletions

View File

@ -20,7 +20,7 @@ SettingsContentBase {
titleRowComponentLoader.sourceComponent: StatusButton { titleRowComponentLoader.sourceComponent: StatusButton {
text: qsTr("Get Keycard") text: qsTr("Get Keycard")
onClicked: { onClicked: {
console.warn("TODO: Go to purchase page...") Global.openLink(Constants.keycard.general.purchasePage)
} }
} }

View File

@ -385,6 +385,7 @@ QtObject {
readonly property QtObject keycard: QtObject { readonly property QtObject keycard: QtObject {
readonly property QtObject general: QtObject { readonly property QtObject general: QtObject {
readonly property string purchasePage: "https://get.keycard.tech"
readonly property int onboardingHeight: 460 readonly property int onboardingHeight: 460
readonly property int loginHeight: 460 readonly property int loginHeight: 460
readonly property int imageWidth: 240 readonly property int imageWidth: 240