2019-04-22 05:20:20 +10:00
|
|
|
import QtQuick 2.7
|
|
|
|
import QtQuick.Controls 2.2
|
|
|
|
import QtQuick.Layouts 1.4
|
2019-04-29 02:45:12 +10:00
|
|
|
import "../Base" as Base
|
2019-04-22 05:20:20 +10:00
|
|
|
import "utils.js" as ChatJS
|
|
|
|
|
|
|
|
Banner {
|
|
|
|
property var leftEvent: null
|
|
|
|
|
2019-04-29 01:01:38 +10:00
|
|
|
color: Base.HStyle.chat.leftBanner.background
|
|
|
|
|
2019-04-27 06:02:20 +10:00
|
|
|
onButtonClicked: if (signalId === "forget") {
|
|
|
|
chatPage.canLoadPastEvents = false
|
|
|
|
pageStack.clear()
|
|
|
|
}
|
|
|
|
|
2019-04-22 05:20:20 +10:00
|
|
|
avatarName: ChatJS.getLeftBannerAvatarName(leftEvent, chatPage.userId)
|
|
|
|
labelText: ChatJS.getLeftBannerText(leftEvent)
|
|
|
|
|
|
|
|
buttonModel: [
|
|
|
|
{
|
2019-04-27 06:02:20 +10:00
|
|
|
signalId: "forget",
|
2019-04-22 05:20:20 +10:00
|
|
|
text: "Forget",
|
2019-04-27 06:02:20 +10:00
|
|
|
iconName: "forget_room",
|
|
|
|
//iconColor: Qt.hsla(0.95, 0.9, 0.35, 1),
|
2019-04-22 06:12:53 +10:00
|
|
|
clientFunction: "forgetRoom",
|
|
|
|
clientArgs: [chatPage.roomId],
|
2019-04-22 05:20:20 +10:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|