mirror of https://github.com/vector-im/riot-web
Apply changes from review
parent
84bcdf66f2
commit
c78d1c49ab
|
@ -305,7 +305,7 @@ class LoggedInView extends React.Component<IProps, IState> {
|
|||
}
|
||||
};
|
||||
|
||||
_onHideToast = () => {
|
||||
private onUsageLimitDismissed = () => {
|
||||
this.setState({
|
||||
usageLimitDismissed: true,
|
||||
});
|
||||
|
@ -322,7 +322,7 @@ class LoggedInView extends React.Component<IProps, IState> {
|
|||
if (usageLimitEventContent && this.state.usageLimitDismissed) {
|
||||
showServerLimitToast(
|
||||
usageLimitEventContent.limit_type,
|
||||
this._onHideToast,
|
||||
this.onUsageLimitDismissed,
|
||||
usageLimitEventContent.admin_contact,
|
||||
error,
|
||||
);
|
||||
|
|
|
@ -40,7 +40,7 @@ export const showToast = (limitType: string, onHideToast: () => void, adminConta
|
|||
acceptLabel: _t("Ok"),
|
||||
onAccept: () => {
|
||||
hideToast()
|
||||
onHideToast()
|
||||
if (onHideToast) { onHideToast() }
|
||||
},
|
||||
},
|
||||
component: GenericToast,
|
||||
|
|
Loading…
Reference in New Issue