You've already forked element-web
mirror of
https://github.com/element-hq/element-web.git
synced 2025-12-02 21:22:41 +03:00
Apply changes from review
This commit is contained in:
@@ -305,7 +305,7 @@ class LoggedInView extends React.Component<IProps, IState> {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
_onHideToast = () => {
|
private onUsageLimitDismissed = () => {
|
||||||
this.setState({
|
this.setState({
|
||||||
usageLimitDismissed: true,
|
usageLimitDismissed: true,
|
||||||
});
|
});
|
||||||
@@ -322,7 +322,7 @@ class LoggedInView extends React.Component<IProps, IState> {
|
|||||||
if (usageLimitEventContent && this.state.usageLimitDismissed) {
|
if (usageLimitEventContent && this.state.usageLimitDismissed) {
|
||||||
showServerLimitToast(
|
showServerLimitToast(
|
||||||
usageLimitEventContent.limit_type,
|
usageLimitEventContent.limit_type,
|
||||||
this._onHideToast,
|
this.onUsageLimitDismissed,
|
||||||
usageLimitEventContent.admin_contact,
|
usageLimitEventContent.admin_contact,
|
||||||
error,
|
error,
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ export const showToast = (limitType: string, onHideToast: () => void, adminConta
|
|||||||
acceptLabel: _t("Ok"),
|
acceptLabel: _t("Ok"),
|
||||||
onAccept: () => {
|
onAccept: () => {
|
||||||
hideToast()
|
hideToast()
|
||||||
onHideToast()
|
if (onHideToast) { onHideToast() }
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
component: GenericToast,
|
component: GenericToast,
|
||||||
|
|||||||
Reference in New Issue
Block a user