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(); + } + } + } +}