2023-09-25 15:03:35 +00:00
import QtQuick 2.15
import QtQuick . Controls 2.15
import QtQml . Models 2.15
import StatusQ . Core 0.1
import StatusQ . Controls 0.1
import StatusQ . Popups . Dialog 0.1
import StatusQ . Core . Theme 0.1
import utils 1.0
StatusDialog {
id: root
// Community related props:
required property string communityName
2023-10-23 11:36:33 +00:00
required property string communityId
2023-09-25 15:03:35 +00:00
signal cancelClicked
signal declineClicked
width: 480 // by design
2024-10-15 19:26:12 +00:00
padding: Theme . padding
2023-09-28 10:09:47 +00:00
title: qsTr ( "Are you sure you don’ t want to be the owner?" )
2023-09-25 15:03:35 +00:00
contentItem: StatusBaseText {
wrapMode: Text . WrapAtWordBoundaryOrAnywhere
text: qsTr ( "If you don’ t want to be the owner of the %1 Community it is important that you let the previous owner know so they can organise another owner to take over. You will have to send the Owner token back to them or on to the next designated owner." ) . arg ( root . communityName )
lineHeight: 1.2
}
footer: StatusDialogFooter {
2024-10-15 19:26:12 +00:00
spacing: Theme . padding
2023-09-25 15:03:35 +00:00
rightButtons: ObjectModel {
StatusFlatButton {
text: qsTr ( "Cancel" )
2023-09-28 10:09:47 +00:00
onClicked: close ( )
2023-09-25 15:03:35 +00:00
}
StatusButton {
text: qsTr ( "I don't want to be the owner" )
type: StatusBaseButton . Type . Danger
onClicked: {
root . declineClicked ( )
close ( )
}
}
}
}
}