mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-28 06:21:11 +00:00
- Button from community column. - Button from community overview. - Updated storybook pages (settings overview related) according to new components requirements. Part of #12174
51 lines
1.4 KiB
QML
51 lines
1.4 KiB
QML
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
|
||
|
||
signal cancelClicked
|
||
signal declineClicked
|
||
|
||
width: 480 // by design
|
||
padding: Style.current.padding
|
||
title: qsTr("Are you sure you don’t want to be the owner?")
|
||
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 {
|
||
spacing: Style.current.padding
|
||
rightButtons: ObjectModel {
|
||
StatusFlatButton {
|
||
text: qsTr("Cancel")
|
||
|
||
onClicked: close()
|
||
}
|
||
|
||
StatusButton {
|
||
text: qsTr("I don't want to be the owner")
|
||
type: StatusBaseButton.Type.Danger
|
||
|
||
onClicked: {
|
||
root.declineClicked()
|
||
close()
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|