2024-10-15 19:26:12 +00:00
|
|
|
import QtQuick 2.15
|
|
|
|
import QtQuick.Layouts 1.15
|
2023-11-28 13:41:11 +00:00
|
|
|
|
|
|
|
import StatusQ.Controls 0.1
|
|
|
|
import StatusQ.Core 0.1
|
|
|
|
import StatusQ.Core.Theme 0.1
|
|
|
|
import StatusQ.Components 0.1
|
|
|
|
|
|
|
|
import shared 1.0
|
|
|
|
import shared.panels 1.0
|
|
|
|
import utils 1.0
|
|
|
|
|
|
|
|
import "../panels"
|
|
|
|
import "../popups"
|
|
|
|
import "../stores"
|
|
|
|
|
|
|
|
ActivityNotificationBase {
|
|
|
|
id: root
|
|
|
|
|
|
|
|
required property string communityName
|
|
|
|
required property string communityColor
|
|
|
|
required property string communityImage
|
|
|
|
|
|
|
|
signal openCommunityClicked
|
|
|
|
signal openShareAccountsClicked
|
|
|
|
|
|
|
|
bodyComponent: RowLayout {
|
|
|
|
spacing: 8
|
|
|
|
|
|
|
|
StatusSmartIdenticon {
|
|
|
|
name: root.communityName
|
|
|
|
Layout.preferredWidth: 40
|
|
|
|
Layout.preferredHeight: 40
|
|
|
|
Layout.alignment: Qt.AlignTop
|
2024-10-15 19:26:12 +00:00
|
|
|
Layout.leftMargin: Theme.padding
|
2023-11-28 13:41:11 +00:00
|
|
|
Layout.topMargin: 2
|
|
|
|
|
|
|
|
asset {
|
|
|
|
width: 24
|
|
|
|
height: width
|
|
|
|
name: root.communityImage
|
|
|
|
color: root.communityColor
|
|
|
|
bgWidth: 40
|
|
|
|
bgHeight: 40
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ColumnLayout {
|
|
|
|
spacing: 2
|
|
|
|
Layout.alignment: Qt.AlignTop
|
|
|
|
|
|
|
|
RowLayout {
|
|
|
|
StatusBaseText {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
verticalAlignment: Text.AlignVCenter
|
|
|
|
font.weight: Font.Medium
|
|
|
|
font.pixelSize: Theme.primaryTextFontSize
|
|
|
|
wrapMode: Text.WordWrap
|
|
|
|
color: Theme.palette.primaryColor1
|
|
|
|
text: qsTr("%1 requires you to share your Accounts").arg(root.communityName)
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusTimeStampLabel {
|
|
|
|
id: timestamp
|
|
|
|
verticalAlignment: Text.AlignVCenter
|
|
|
|
timestamp: root.notification.timestamp
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
RowLayout {
|
2024-10-15 19:26:12 +00:00
|
|
|
spacing: Theme.padding
|
2023-11-28 13:41:11 +00:00
|
|
|
|
|
|
|
StatusBaseText {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
text: qsTr("To continue to be a member of %1, you need to share your accounts").arg(root.communityName)
|
|
|
|
font.italic: true
|
|
|
|
wrapMode: Text.WordWrap
|
|
|
|
color: Theme.palette.baseColor1
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusFlatButton {
|
|
|
|
size: StatusBaseButton.Size.Small
|
|
|
|
text: qsTr("Share")
|
|
|
|
onClicked: {
|
|
|
|
root.openShareAccountsClicked()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ctaComponent: undefined
|
|
|
|
}
|