refactor(PinnedMessagePopup): use StatusQ StatusButton
This commit is contained in:
parent
f244de248c
commit
20ac29c6c4
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue