From ae5891ca23545126fc43be0d3aecae1f99107daa Mon Sep 17 00:00:00 2001 From: Tomas Mizera Date: Thu, 5 Oct 2023 14:00:37 +0200 Subject: [PATCH] bring back button to account page to get to the dashboard --- app/qml/ProjectPanel.qml | 2 ++ app/qml/WorkspaceAccountPage.qml | 11 +++++++++++ 2 files changed, 13 insertions(+) diff --git a/app/qml/ProjectPanel.qml b/app/qml/ProjectPanel.qml index a15cf5a1c..0b4caa47e 100644 --- a/app/qml/ProjectPanel.qml +++ b/app/qml/ProjectPanel.qml @@ -933,6 +933,8 @@ Item { onBack: stackView.popOnePageOrClose() + onManagePlansClicked: manageSubscriptionPlans() + onSignOutClicked: { __merginApi.signOut() stackView.pop( null ) diff --git a/app/qml/WorkspaceAccountPage.qml b/app/qml/WorkspaceAccountPage.qml index 716697ed4..999b9a010 100644 --- a/app/qml/WorkspaceAccountPage.qml +++ b/app/qml/WorkspaceAccountPage.qml @@ -21,6 +21,7 @@ Page { signal back signal signOutClicked + signal managePlansClicked signal accountDeleted signal switchWorkspace @@ -204,6 +205,16 @@ Page { text: qsTr("Your subscription was cancelled on %1").arg(root.subscriptionsTimestamp) } + MMComponents.DelegateButton { + Layout.fillWidth: true + btnWidth: width + + height: InputStyle.rowHeightMedium + + text: qsTr("Manage account") + onClicked: root.managePlansClicked() + } + Text { Layout.fillWidth: true Layout.preferredHeight: InputStyle.rowHeightHeader