-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ActivityCenter): Kicked from community notification
- Loading branch information
1 parent
fd68ffb
commit bdb84cc
Showing
6 changed files
with
74 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
ui/app/mainui/activitycenter/views/ActivityNotificationCommunityKicked.qml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import QtQuick 2.14 | ||
import QtQuick.Layouts 1.14 | ||
|
||
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 shared.controls 1.0 | ||
import utils 1.0 | ||
|
||
import "../controls" | ||
|
||
ActivityNotificationBase { | ||
id: root | ||
|
||
bodyComponent: RowLayout { | ||
readonly property var community: root.store.getCommunityDetailsAsJson(notification.communityId) | ||
|
||
StatusSmartIdenticon { | ||
id: identicon | ||
name: community.name | ||
asset.width: 40 | ||
asset.height: 40 | ||
asset.color: community.color | ||
asset.letterSize: width / 2.4 | ||
asset.name: community.image | ||
asset.isImage: true | ||
Layout.leftMargin: Style.current.padding | ||
} | ||
|
||
StatusBaseText { | ||
text: qsTr("You were kicked from") | ||
Layout.alignment: Qt.AlignVCenter | ||
} | ||
|
||
CommunityBadge { | ||
communityName: community.name | ||
communityImage: community.image | ||
communityColor: community.color | ||
onCommunityNameClicked: root.store.setActiveCommunity(notification.communityId) | ||
Layout.alignment: Qt.AlignVCenter | ||
} | ||
|
||
Item { | ||
Layout.fillWidth: true | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters