You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-11 20:22:36 +03:00
styling and fix i button behaviour
This commit is contained in:
@@ -19,7 +19,7 @@ limitations under the License.
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import { _t } from '../../../languageHandler';
|
||||
import {_t} from '../../../languageHandler';
|
||||
import HeaderButton from './HeaderButton';
|
||||
import HeaderButtons, {HeaderKind} from './HeaderButtons';
|
||||
import {RightPanelPhases} from "../../../stores/RightPanelStorePhases";
|
||||
@@ -59,8 +59,13 @@ export default class RoomHeaderButtons extends HeaderButtons {
|
||||
|
||||
// TODO make it restore whatever widget they were on last
|
||||
private onRoomSummaryClicked = () => {
|
||||
// This toggles for us, if needed
|
||||
this.setPhase(RightPanelPhases.RoomSummary);
|
||||
if (this.state.phase === RightPanelPhases.Widget) {
|
||||
// Close the panel
|
||||
this.setPhase(RightPanelPhases.Widget);
|
||||
} else {
|
||||
// This toggles for us, if needed
|
||||
this.setPhase(RightPanelPhases.RoomSummary);
|
||||
}
|
||||
};
|
||||
|
||||
private onNotificationsClicked = () => {
|
||||
|
||||
Reference in New Issue
Block a user