From e73bcb5b2579fce79ed707f0ae8b91c96f7e2d86 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Fri, 4 Oct 2024 11:03:23 -0400 Subject: [PATCH] fix typo --- storybook/pages/PinnedMessagesPopupPage.qml | 2 +- ui/app/AppLayouts/Chat/popups/PinnedMessagesPopup.qml | 4 ++-- ui/app/mainui/Popups.qml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/storybook/pages/PinnedMessagesPopupPage.qml b/storybook/pages/PinnedMessagesPopupPage.qml index 8f7835a3f6..a71204ef21 100644 --- a/storybook/pages/PinnedMessagesPopupPage.qml +++ b/storybook/pages/PinnedMessagesPopupPage.qml @@ -274,7 +274,7 @@ SplitView { text: "Is Pin Action Available" checked: true onCheckedChanged: { - pinnedMessagesPopup.isPinActionAvaliable = checked + pinnedMessagesPopup.isPinActionAvailable = checked } } diff --git a/ui/app/AppLayouts/Chat/popups/PinnedMessagesPopup.qml b/ui/app/AppLayouts/Chat/popups/PinnedMessagesPopup.qml index 32b7154bd4..40443715a9 100644 --- a/ui/app/AppLayouts/Chat/popups/PinnedMessagesPopup.qml +++ b/ui/app/AppLayouts/Chat/popups/PinnedMessagesPopup.qml @@ -25,7 +25,7 @@ StatusDialog { property string messageToUnpin property string chatId - readonly property bool isPinActionAvaliable: true + readonly property bool isPinActionAvailable: true signal pinMessageRequested(string messageId) signal unpinMessageRequested(string messageId) @@ -165,7 +165,7 @@ StatusDialog { z: mouseArea.z + 1 width: 32 height: 32 - visible: root.isPinActionAvaliable && !root.messageToPin && (hovered || mouseArea.containsMouse) + visible: root.isPinActionAvailable && !root.messageToPin && (hovered || mouseArea.containsMouse) icon.name: "unpin" tooltip.text: qsTr("Unpin") color: hovered ? Theme.palette.primaryColor2 : Theme.palette.indirectColor1 diff --git a/ui/app/mainui/Popups.qml b/ui/app/mainui/Popups.qml index 9ec3e967b8..aed15577a3 100644 --- a/ui/app/mainui/Popups.qml +++ b/ui/app/mainui/Popups.qml @@ -265,7 +265,7 @@ QtObject { pinnedMessagesModel: pinnedMessagesModel, messageToPin: messageToPin, chatId: chatId, - isPinActionAvaliable: store && store.oneToOneChatContact ? store.oneToOneChatContact.isContact : true + isPinActionAvailable: store && store.oneToOneChatContact ? store.oneToOneChatContact.isContact : true }) }