From 87d0a87b59faa088f7f90744a483cc1f7a726c81 Mon Sep 17 00:00:00 2001 From: Alexandra Betouni <31625338+alexandraB99@users.noreply.github.com> Date: Thu, 9 Sep 2021 12:38:16 +0300 Subject: [PATCH] fix(dektop/profile) Back up seed was gone Brought back back up seed phrase indicator in profile menu "Privacy and security" Closes #3433 --- ui/app/AppLayouts/Profile/LeftTab/Menu.qml | 3 ++ .../Sections/ChangePasswordSuccessModal.qml | 36 +++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 ui/app/AppLayouts/Profile/Sections/ChangePasswordSuccessModal.qml diff --git a/ui/app/AppLayouts/Profile/LeftTab/Menu.qml b/ui/app/AppLayouts/Profile/LeftTab/Menu.qml index 45bd4e4629..478b1a728d 100644 --- a/ui/app/AppLayouts/Profile/LeftTab/Menu.qml +++ b/ui/app/AppLayouts/Profile/LeftTab/Menu.qml @@ -37,12 +37,15 @@ ScrollView { Repeater { model: ProfileConstants.settingsMenuButtons delegate: StatusNavigationListItem { + id: settingsMenuDelegate itemId: modelData.id title: modelData.text icon.name: modelData.icon selected: Config.currentMenuTab === modelData.id onClicked: Config.currentMenuTab = modelData.id visible: modelData.ifEnabled !== "browser" || appSettings.isBrowserEnabled + badge.value: (!profileModel.mnemonic.isBackedUp && (settingsMenuDelegate.title === + ProfileConstants.settingsMenuButtons[0].text)) ? 1 : 0 } } diff --git a/ui/app/AppLayouts/Profile/Sections/ChangePasswordSuccessModal.qml b/ui/app/AppLayouts/Profile/Sections/ChangePasswordSuccessModal.qml new file mode 100644 index 0000000000..463cf8e5d8 --- /dev/null +++ b/ui/app/AppLayouts/Profile/Sections/ChangePasswordSuccessModal.qml @@ -0,0 +1,36 @@ +import QtQuick 2.13 +import QtQuick.Controls 2.13 +import QtQuick.Layouts 1.12 +import StatusQ.Controls 0.1 +import "../../../../imports" +import "../../../../shared" + +ModalPopup { + id: root + width: 400 + height: 248 + + closePolicy: Popup.NoAutoClose + + contentItem: Column { + implicitWidth: root.width + implicitHeight: root.height + spacing: 8 + StatusIcon { + icon: "check" + } + StatusBaseText { + text: qsTr("You need to sign in again using the new password.") + } + + StatusButton { + id: submitBtn + anchors.right: parent.right + text: qsTr("Log out") + onClicked: { + //quits the app TODO: change this to logout instead when supported + Qt.quit(); + } + } + } +}