hotfix(AddAccountModal): fix setting account emoji

probably a leftover from the StatusAssetSettings porting
(plus remove some non-existing functions)
This commit is contained in:
Lukáš Tinkl 2022-09-08 11:12:30 +02:00 committed by Lukáš Tinkl
parent 0be30b5e54
commit 5897615cc1
1 changed files with 4 additions and 5 deletions

View File

@ -23,7 +23,7 @@ StatusModal {
id: root id: root
property int minPswLen: 10 property int minPswLen: 10
readonly property int marginBetweenInputs: Style.dp(38) readonly property int marginBetweenInputs: 38
readonly property alias passwordValidationError: d.passwordValidationError readonly property alias passwordValidationError: d.passwordValidationError
property var emojiPopup: null property var emojiPopup: null
@ -46,7 +46,7 @@ StatusModal {
enabled: root.opened enabled: root.opened
function onEmojiSelected (emojiText, atCursor) { function onEmojiSelected (emojiText, atCursor) {
accountNameInput.input.icon.emoji = emojiText accountNameInput.input.asset.emoji = emojiText
} }
} }
@ -61,7 +61,6 @@ StatusModal {
function onDerivedAddressesErrorChanged() { function onDerivedAddressesErrorChanged() {
if(Utils.isInvalidPasswordMessage(RootStore.derivedAddressesError)) if(Utils.isInvalidPasswordMessage(RootStore.derivedAddressesError))
d.passwordValidationError = qsTr("Password must be at least %n character(s) long", "", root.minPswLen); d.passwordValidationError = qsTr("Password must be at least %n character(s) long", "", root.minPswLen);
} }
} }
@ -161,14 +160,14 @@ StatusModal {
bottomPadding: Style.current.halfPadding bottomPadding: Style.current.halfPadding
leftPadding: Style.current.padding leftPadding: Style.current.padding
rightPadding: Style.current.padding rightPadding: Style.current.padding
height: Style.dp(400) height: 400
objectName: "AddAccountModalContent" objectName: "AddAccountModalContent"
Column { Column {
property alias accountNameInput: accountNameInput property alias accountNameInput: accountNameInput
width: scroll.availableWidth width: scroll.availableWidth
spacing: Style.current.halfPadding spacing: Style.current.halfPadding
topPadding: Style.dp(20) topPadding: 20
// To-Do Password hidden option not supported in StatusQ StatusInput // To-Do Password hidden option not supported in StatusQ StatusInput
Item { Item {