Merge pull request #2822 from matrix-org/travis/minimize-widgets
Minimize stickerpicker when the title is clicked
This commit is contained in:
commit
1703e3860b
2 changed files with 10 additions and 5 deletions
|
@ -447,10 +447,14 @@ export default class AppTile extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Toggle the view state of the apps drawer
|
// Toggle the view state of the apps drawer
|
||||||
dis.dispatch({
|
if (this.props.userWidget) {
|
||||||
action: 'appsDrawer',
|
this._onMinimiseClick();
|
||||||
show: !this.props.show,
|
} else {
|
||||||
});
|
dis.dispatch({
|
||||||
|
action: 'appsDrawer',
|
||||||
|
show: !this.props.show,
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_getSafeUrl() {
|
_getSafeUrl() {
|
||||||
|
@ -626,7 +630,7 @@ export default class AppTile extends React.Component {
|
||||||
{ /* Maximise widget */ }
|
{ /* Maximise widget */ }
|
||||||
{ showMaximiseButton && <AccessibleButton
|
{ showMaximiseButton && <AccessibleButton
|
||||||
className="mx_AppTileMenuBar_iconButton mx_AppTileMenuBar_iconButton_maximise"
|
className="mx_AppTileMenuBar_iconButton mx_AppTileMenuBar_iconButton_maximise"
|
||||||
title={_t('Minimize apps')}
|
title={_t('Maximize apps')}
|
||||||
onClick={this._onMinimiseClick}
|
onClick={this._onMinimiseClick}
|
||||||
/> }
|
/> }
|
||||||
{ /* Title */ }
|
{ /* Title */ }
|
||||||
|
|
|
@ -935,6 +935,7 @@
|
||||||
"Failed to remove widget": "Failed to remove widget",
|
"Failed to remove widget": "Failed to remove widget",
|
||||||
"An error ocurred whilst trying to remove the widget from the room": "An error ocurred whilst trying to remove the widget from the room",
|
"An error ocurred whilst trying to remove the widget from the room": "An error ocurred whilst trying to remove the widget from the room",
|
||||||
"Minimize apps": "Minimize apps",
|
"Minimize apps": "Minimize apps",
|
||||||
|
"Maximize apps": "Maximize apps",
|
||||||
"Reload widget": "Reload widget",
|
"Reload widget": "Reload widget",
|
||||||
"Popout widget": "Popout widget",
|
"Popout widget": "Popout widget",
|
||||||
"Picture": "Picture",
|
"Picture": "Picture",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue