refactor(PinnedMessagePopup): use StatusQ StatusButton

This commit is contained in:
Pascal Precht 2021-10-19 13:58:06 +02:00 committed by Iuri Matias
parent f244de248c
commit 20ac29c6c4
1 changed files with 4 additions and 2 deletions

View File

@ -12,6 +12,8 @@ import "../panels"
//TODO remove or make view?
import "../views"
import StatusQ.Controls 0.1 as StatusQControls
// TODO: replace with StatusMOdal
ModalPopup {
property var rootStore
@ -224,13 +226,13 @@ ModalPopup {
width: parent.width
height: btnUnpin.height
StatusButton {
StatusQControls.StatusButton {
id: btnUnpin
visible: !!messageToPin
enabled: !!messageToUnpin
//% "Unpin"
text: qsTrId("unpin")
type: "warn"
type: StatusBaseButton.Type.Danger
anchors.right: parent.right
onClicked: {
const chatId = chatsModel.channelView.activeChannel.id