mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-10 06:16:32 +00:00
04037d1d64
The warning to back up the seedphrase should disappear after either dismissing the message, or in fact backing up the seed phrase. The latter was not happening because the banner didn't take that information into account. This commit fixes this by ensuring we let the banner know whether the seed phrase was already backed up. Notice that we don't want to render the banner when the seed phrase has *not* been backed up yet, but was dismissed by the user. Fixes #6255
47 lines
1.5 KiB
QML
47 lines
1.5 KiB
QML
import QtQuick 2.13
|
|
import utils 1.0
|
|
|
|
QtObject {
|
|
id: root
|
|
|
|
property var profileModule
|
|
|
|
property string pubkey: userProfile.pubKey
|
|
property string name: userProfile.name // in case of ens returns pretty ens form
|
|
property string username: userProfile.username
|
|
property string displayName: userProfile.displayName
|
|
property string ensName: userProfile.preferredName || userProfile.firstEnsName || userProfile.ensName
|
|
property string profileLargeImage: userProfile.largeImage
|
|
property string icon: userProfile.icon
|
|
property bool userDeclinedBackupBanner: localAccountSensitiveSettings.userDeclinedBackupBanner
|
|
property var privacyStore: profileSectionModule.privacyModule
|
|
|
|
onUserDeclinedBackupBannerChanged: {
|
|
if (userDeclinedBackupBanner !== localAccountSensitiveSettings.userDeclinedBackupBanner) {
|
|
localAccountSensitiveSettings.userDeclinedBackupBanner = userDeclinedBackupBanner
|
|
}
|
|
}
|
|
|
|
property var details: Utils.getContactDetailsAsJson(pubkey)
|
|
|
|
function uploadImage(source, aX, aY, bX, bY) {
|
|
return root.profileModule.upload(source, aX, aY, bX, bY)
|
|
}
|
|
|
|
function removeImage() {
|
|
return root.profileModule.remove()
|
|
}
|
|
|
|
function getQrCodeSource(publicKey) {
|
|
return globalUtils.qrCode(publicKey)
|
|
}
|
|
|
|
function copyToClipboard(value) {
|
|
globalUtils.copyToClipboard(value)
|
|
}
|
|
|
|
function setDisplayName(displayName) {
|
|
root.profileModule.setDisplayName(displayName)
|
|
}
|
|
}
|