mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-18 10:32:53 +00:00
parent
e31d8ebd3e
commit
ae915b6036
@ -8,6 +8,7 @@ import StatusQ.Core.Theme 0.1
|
|||||||
import StatusQ.Controls 0.1
|
import StatusQ.Controls 0.1
|
||||||
import StatusQ.Popups 0.1
|
import StatusQ.Popups 0.1
|
||||||
import StatusQ.Controls.Validators 0.1
|
import StatusQ.Controls.Validators 0.1
|
||||||
|
import StatusQ.Core.Utils 0.1 as StatusQUtils
|
||||||
|
|
||||||
import utils 1.0
|
import utils 1.0
|
||||||
|
|
||||||
@ -35,7 +36,8 @@ StatusModal {
|
|||||||
enabled: popup.opened
|
enabled: popup.opened
|
||||||
target: emojiPopup
|
target: emojiPopup
|
||||||
function onEmojiSelected(emojiText: string, atCursor: bool) {
|
function onEmojiSelected(emojiText: string, atCursor: bool) {
|
||||||
popup.contentItem.accountNameInput.input.asset.emoji = emojiText
|
let emoji = StatusQUtils.Emoji.deparse(emojiText)
|
||||||
|
popup.contentItem.accountNameInput.input.asset.emoji = emoji
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -112,9 +114,11 @@ StatusModal {
|
|||||||
objectName: "renameAccountModalSaveBtn"
|
objectName: "renameAccountModalSaveBtn"
|
||||||
text: qsTr("Change Name")
|
text: qsTr("Change Name")
|
||||||
|
|
||||||
enabled: accountNameInput.text !== "" && accountNameInput.valid
|
enabled: accountNameInput.text !== "" &&
|
||||||
&& (accountNameInput.text !== popup.account.name
|
accountNameInput.valid &&
|
||||||
|| (accountColorInput.selectedColorIndex >= 0 && accountColorInput.selectedColor !== popup.account.color))
|
(accountNameInput.text !== popup.account.name ||
|
||||||
|
accountColorInput.selectedColorIndex >= 0 && accountColorInput.selectedColor !== popup.account.color ||
|
||||||
|
accountNameInput.input.asset.emoji !== popup.account.emoji)
|
||||||
|
|
||||||
MessageDialog {
|
MessageDialog {
|
||||||
id: changeError
|
id: changeError
|
||||||
|
@ -70,7 +70,8 @@ Item {
|
|||||||
target: root.store.emojiPopup
|
target: root.store.emojiPopup
|
||||||
|
|
||||||
function onEmojiSelected (emojiText, atCursor) {
|
function onEmojiSelected (emojiText, atCursor) {
|
||||||
root.store.addAccountModule.selectedEmoji = emojiText
|
let emoji = StatusQUtils.Emoji.deparse(emojiText)
|
||||||
|
root.store.addAccountModule.selectedEmoji = emoji
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -82,7 +82,8 @@ Item {
|
|||||||
root.sharedKeycardModule.currentState.flowType === Constants.keycardSharedFlow.importFromKeycard
|
root.sharedKeycardModule.currentState.flowType === Constants.keycardSharedFlow.importFromKeycard
|
||||||
|
|
||||||
function onEmojiSelected (emojiText, atCursor) {
|
function onEmojiSelected (emojiText, atCursor) {
|
||||||
d.observedAccount.emoji = emojiText
|
let emoji = StatusQUtils.Emoji.deparse(emojiText)
|
||||||
|
d.observedAccount.emoji = emoji
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user