Adjusted confirm button wrong style. Fixes #1811

This commit is contained in:
ace-smart 2021-02-10 10:12:43 +04:00 committed by Iuri Matias
parent 3f525a0b2a
commit 849be39ee2
2 changed files with 1 additions and 3 deletions

View File

@ -57,7 +57,6 @@ ListView {
// TODO: Make ConfirmationDialog a dynamic component on a future refactor
ConfirmationDialog {
id: removeContactConfirmationDialog
btnType: "warn"
title: qsTrId("remove-contact")
//% "Are you sure you want to remove this contact?"
confirmationText: qsTrId("are-you-sure-you-want-to-remove-this-contact-")

View File

@ -9,7 +9,7 @@ ModalPopup {
id: confirmationDialog
property Popup parentPopup
property string btnType: "primary"
property string btnType: "warn"
height: 186
@ -43,7 +43,6 @@ ModalPopup {
type: confirmationDialog.btnType
anchors.right: parent.right
anchors.rightMargin: Style.current.smallPadding
color: Style.current.danger
text: confirmationDialog.confirmButtonLabel
anchors.bottom: parent.bottom
onClicked: confirmationDialog.confirmButtonClicked()