mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-10 22:36:24 +00:00
(community): fixed add/edit channels community right emoji button
Closes #9839
This commit is contained in:
parent
8ffd1194ef
commit
56a7215a4c
@ -40,6 +40,17 @@ StatusDialog {
|
|||||||
signal editCommunityChannel(string chName, string chDescription, string chEmoji, string chColor, string chCategoryId)
|
signal editCommunityChannel(string chName, string chDescription, string chEmoji, string chColor, string chCategoryId)
|
||||||
signal deleteCommunityChannel()
|
signal deleteCommunityChannel()
|
||||||
|
|
||||||
|
QtObject {
|
||||||
|
id: d
|
||||||
|
function openEmojiPopup(leftSide = false) {
|
||||||
|
root.emojiPopupOpened = true;
|
||||||
|
root.emojiPopup.open();
|
||||||
|
root.emojiPopup.emojiSize = StatusQUtils.Emoji.size.verySmall;
|
||||||
|
root.emojiPopup.x = leftSide ? root.x + Style.current.padding : (root.x + (root.width - root.emojiPopup.width - Style.current.padding));
|
||||||
|
root.emojiPopup.y = root.y + root.header.height + root.topPadding + nameInput.height + Style.current.smallPadding;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
title: qsTr("New channel")
|
title: qsTr("New channel")
|
||||||
|
|
||||||
onOpened: {
|
onOpened: {
|
||||||
@ -124,13 +135,13 @@ StatusDialog {
|
|||||||
icon.height: 20
|
icon.height: 20
|
||||||
icon.name: "smiley"
|
icon.name: "smiley"
|
||||||
onClicked: {
|
onClicked: {
|
||||||
root.emojiPopupOpened = true;
|
d.openEmojiPopup();
|
||||||
root.emojiPopup.open();
|
|
||||||
root.emojiPopup.emojiSize = StatusQUtils.Emoji.size.verySmall;
|
|
||||||
root.emojiPopup.x = root.x + (root.width - root.emojiPopup.width - Style.current.padding);
|
|
||||||
root.emojiPopup.y = root.y + root.header.height + root.topPadding + nameInput.height + Style.current.smallPadding;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
onIconClicked: {
|
||||||
|
d.openEmojiPopup(true);
|
||||||
|
}
|
||||||
|
|
||||||
validators: [
|
validators: [
|
||||||
StatusMinLengthValidator {
|
StatusMinLengthValidator {
|
||||||
minLength: 1
|
minLength: 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user