fix(Wallet/AddAccountPopup): Removed emoji random selection
Closes #12907
This commit is contained in:
parent
7a5e691c90
commit
a8b034a35b
|
@ -35,12 +35,18 @@ Item {
|
|||
}
|
||||
|
||||
accountName.text = root.store.addAccountModule.accountName
|
||||
if (d.isEdit) {
|
||||
accountName.input.asset.emoji = root.store.addAccountModule.selectedEmoji;
|
||||
} else {
|
||||
accountName.input.asset.isLetterIdenticon = true;
|
||||
}
|
||||
accountName.input.edit.forceActiveFocus()
|
||||
accountName.validate(true)
|
||||
}
|
||||
|
||||
QtObject {
|
||||
id: d
|
||||
readonly property bool isEdit: root.store.editMode
|
||||
|
||||
function evaluateColorIndex(color) {
|
||||
for (let i = 0; i < Theme.palette.customisationColorsArray.length; i++) {
|
||||
|
@ -72,6 +78,8 @@ Item {
|
|||
function onEmojiSelected (emojiText, atCursor) {
|
||||
let emoji = StatusQUtils.Emoji.deparse(emojiText)
|
||||
root.store.addAccountModule.selectedEmoji = emoji
|
||||
accountName.input.asset.isLetterIdenticon = false
|
||||
accountName.input.asset.emoji = emojiText
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -110,7 +118,6 @@ Item {
|
|||
input.isIconSelectable: true
|
||||
input.leftPadding: Style.current.padding
|
||||
input.asset.color: Utils.getColorForId(root.store.addAccountModule.selectedColorId)
|
||||
input.asset.emoji: root.store.addAccountModule.selectedEmoji
|
||||
onIconClicked: {
|
||||
d.openEmojiPopup(true)
|
||||
}
|
||||
|
@ -139,6 +146,9 @@ Item {
|
|||
|
||||
onTextChanged: {
|
||||
root.store.addAccountModule.accountName = text
|
||||
if (input.asset.emoji === "") {
|
||||
input.letterIconName = text;
|
||||
}
|
||||
}
|
||||
|
||||
onKeyPressed: {
|
||||
|
|
Loading…
Reference in New Issue