Dispatch show hide app drawer events
This commit is contained in:
parent
9dd0b9bdd1
commit
95988bd5ec
1 changed files with 10 additions and 12 deletions
|
@ -164,21 +164,19 @@ export default class MessageComposer extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
onShowAppsClick(ev) {
|
onShowAppsClick(ev) {
|
||||||
alert("Showing apps");
|
|
||||||
console.warn("Showing apps");
|
console.warn("Showing apps");
|
||||||
// dis.dispatch({
|
dis.dispatch({
|
||||||
// action: 'showApps',
|
action: 'showApps',
|
||||||
// room_id: this.props.room.roomId,
|
room_id: this.props.room.roomId,
|
||||||
// });
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
onHideAppsClick(ev) {
|
onHideAppsClick(ev) {
|
||||||
alert("Hiding apps");
|
|
||||||
console.warn("Hiding apps");
|
console.warn("Hiding apps");
|
||||||
// dis.dispatch({
|
dis.dispatch({
|
||||||
// action: 'hideApps',
|
action: 'hideApps',
|
||||||
// room_id: this.props.room.roomId,
|
room_id: this.props.room.roomId,
|
||||||
// });
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
onInputContentChanged(content: string, selection: {start: number, end: number}) {
|
onInputContentChanged(content: string, selection: {start: number, end: number}) {
|
||||||
|
@ -282,12 +280,12 @@ export default class MessageComposer extends React.Component {
|
||||||
// Apps
|
// Apps
|
||||||
if (this.props.showAppsState && this.props.showAppsState == 'visible') {
|
if (this.props.showAppsState && this.props.showAppsState == 'visible') {
|
||||||
hideAppsButton =
|
hideAppsButton =
|
||||||
<div key="hide_apps" className="mx_MessageComposer_hideApps" onClick={this.onCallClick} title="Hide Apps">
|
<div key="controls_hide_apps" className="mx_MessageComposer_apps" onClick={this.onHideAppsClick} title="Hide Apps">
|
||||||
<TintableSvg src="img/icons-apps-active.svg" width="35" height="35"/>
|
<TintableSvg src="img/icons-apps-active.svg" width="35" height="35"/>
|
||||||
</div>;
|
</div>;
|
||||||
} else {
|
} else {
|
||||||
showAppsButton =
|
showAppsButton =
|
||||||
<div key="show_apps" className="mx_MessageComposer_showApps" onClick={this.onCallClick} title="Show Apps">
|
<div key="show_apps" className="mx_MessageComposer_apps" onClick={this.onShowAppsClick} title="Show Apps">
|
||||||
<TintableSvg src="img/icons-apps.svg" width="35" height="35"/>
|
<TintableSvg src="img/icons-apps.svg" width="35" height="35"/>
|
||||||
</div>;
|
</div>;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue