You've already forked element-web
mirror of
https://github.com/element-hq/element-web.git
synced 2025-11-29 21:23:11 +03:00
Make 'group not found' work
This commit is contained in:
@@ -59,7 +59,7 @@ module.exports = React.createClass({
|
|||||||
});
|
});
|
||||||
}, (err) => {
|
}, (err) => {
|
||||||
this.setState({
|
this.setState({
|
||||||
phase: err.errcode == 404 ? "GroupView.NOT_FOUND" :"GroupView.ERROR",
|
phase: err.httpStatus == 404 ? "GroupView.NOT_FOUND" :"GroupView.ERROR",
|
||||||
summary: null,
|
summary: null,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -110,9 +110,11 @@ module.exports = React.createClass({
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
} else if (this.state.phase == "GroupView.NOT_FOUND") {
|
} else if (this.state.phase == "GroupView.NOT_FOUND") {
|
||||||
<div style={{margin: "auto"}}>
|
return (
|
||||||
Group {this.props.groupId} not found
|
<div style={{margin: "auto"}}>
|
||||||
</div>
|
Group {this.props.groupId} not found
|
||||||
|
</div>
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
return (
|
return (
|
||||||
<div style={{margin: "auto"}}>
|
<div style={{margin: "auto"}}>
|
||||||
|
|||||||
Reference in New Issue
Block a user