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