mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-16 20:43:48 +00:00
Moved logic to mark selected server to parent component in order to affect all children compo0nents on the same route
This commit is contained in:
@@ -102,7 +102,11 @@ export class ShortUrlsList extends React.Component {
|
||||
}
|
||||
|
||||
renderShortUrls() {
|
||||
const { shortUrlsList, selectedServer, loading } = this.props;
|
||||
const { shortUrlsList, selectedServer, loading, error } = this.props;
|
||||
if (error) {
|
||||
return <tr><td colSpan="6" className="text-center table-danger">Something went wrong while loading short URLs :(</td></tr>;
|
||||
}
|
||||
|
||||
if (loading) {
|
||||
return <tr><td colSpan="6" className="text-center">Loading...</td></tr>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user