You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-20 16:22:28 +03:00
add class for message case for e2e tests
This commit is contained in:
@@ -227,7 +227,8 @@ module.exports = React.createClass({
|
|||||||
let secondaryActionHandler;
|
let secondaryActionHandler;
|
||||||
let secondaryActionLabel;
|
let secondaryActionLabel;
|
||||||
|
|
||||||
switch (this._getMessageCase()) {
|
const messageCase = this._getMessageCase();
|
||||||
|
switch (messageCase) {
|
||||||
case MessageCase.Joining: {
|
case MessageCase.Joining: {
|
||||||
title = _t("Joining room …");
|
title = _t("Joining room …");
|
||||||
showSpinner = true;
|
showSpinner = true;
|
||||||
@@ -418,7 +419,7 @@ module.exports = React.createClass({
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const classes = classNames("mx_RoomPreviewBar", "dark-panel", {
|
const classes = classNames("mx_RoomPreviewBar", "dark-panel", `mx_RoomPreviewBar_${messageCase}`, {
|
||||||
"mx_RoomPreviewBar_panel": this.props.canPreview,
|
"mx_RoomPreviewBar_panel": this.props.canPreview,
|
||||||
"mx_RoomPreviewBar_dialog": !this.props.canPreview,
|
"mx_RoomPreviewBar_dialog": !this.props.canPreview,
|
||||||
"mx_RoomPreviewBar_dark": darkStyle,
|
"mx_RoomPreviewBar_dark": darkStyle,
|
||||||
|
|||||||
Reference in New Issue
Block a user