fix(dektop/profile) Back up seed was gone

Brought back back up seed phrase indicator in profile
menu "Privacy and security"

Closes #3433
This commit is contained in:
Alexandra Betouni 2021-09-09 12:38:16 +03:00 committed by Iuri Matias
parent f3b8ab4749
commit 87d0a87b59
2 changed files with 39 additions and 0 deletions

View File

@ -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
}
}

View File

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