mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
rename override_event
This commit is contained in:
parent
55a1dbc5a7
commit
99364947ec
@ -156,8 +156,8 @@ export default class Sidebar extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
handleClick = (e) => {
|
handleClick = (e) => {
|
||||||
if (e.item.props.overrideEvent) {
|
if (e.item.props.override_event) {
|
||||||
return app.eventBus.emit(e.item.props.overrideEvent, e.item.props.overrideEventProps)
|
return app.eventBus.emit(e.item.props.override_event, e.item.props.override_event_props)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof e.key === "undefined") {
|
if (typeof e.key === "undefined") {
|
||||||
@ -248,17 +248,17 @@ export default class Sidebar extends React.Component {
|
|||||||
|
|
||||||
<div key="bottom" className={classnames("app_sidebar_menu_wrapper", "bottom")}>
|
<div key="bottom" className={classnames("app_sidebar_menu_wrapper", "bottom")}>
|
||||||
<Menu selectable={false} mode="inline" onClick={this.handleClick}>
|
<Menu selectable={false} mode="inline" onClick={this.handleClick}>
|
||||||
<Menu.Item key="search" icon={<Icons.Search />} overrideEvent="app.openSearcher" >
|
<Menu.Item key="search" icon={<Icons.Search />} override_event="app.openSearcher" >
|
||||||
<Translation>
|
<Translation>
|
||||||
{(t) => t("Search")}
|
{(t) => t("Search")}
|
||||||
</Translation>
|
</Translation>
|
||||||
</Menu.Item>
|
</Menu.Item>
|
||||||
<Menu.Item key="create" icon={<Icons.PlusCircle />} overrideEvent="app.openCreator" >
|
<Menu.Item key="create" icon={<Icons.PlusCircle />} override_event="app.openCreator" >
|
||||||
<Translation>
|
<Translation>
|
||||||
{(t) => t("Create")}
|
{(t) => t("Create")}
|
||||||
</Translation>
|
</Translation>
|
||||||
</Menu.Item>
|
</Menu.Item>
|
||||||
<Menu.Item key="notifications" icon={<Icons.Bell />} overrideEvent="app.openNotifications">
|
<Menu.Item key="notifications" icon={<Icons.Bell />} override_event="app.openNotifications">
|
||||||
<Translation>
|
<Translation>
|
||||||
{t => t("Notifications")}
|
{t => t("Notifications")}
|
||||||
</Translation>
|
</Translation>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user