Improve a handful of error surfacing messages
`Spec` => `API definition`, notably.
This commit is contained in:
@@ -65,7 +65,7 @@ export default class BaseLayout extends React.Component {
|
||||
if(isLoading) {
|
||||
loadingMessage = <div className="loading"></div>
|
||||
} else {
|
||||
loadingMessage = <h4>No spec provided.</h4>
|
||||
loadingMessage = <h4>No API definition provided.</h4>
|
||||
}
|
||||
|
||||
return <div className="swagger-ui">
|
||||
|
||||
@@ -42,13 +42,13 @@ export default class StandaloneLayout extends React.Component {
|
||||
{ loadingStatus === "failed" &&
|
||||
<div className="info">
|
||||
<div className="loading-container">
|
||||
<h4 className="title">Failed to load spec.</h4>
|
||||
<h4 className="title">Failed to load API definition.</h4>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
{ loadingStatus === "failedConfig" &&
|
||||
<div className="info" style={{ maxWidth: "880px", marginLeft: "auto", marginRight: "auto", textAlign: "center" }}>
|
||||
<h4 className="title">Failed to load config.</h4>
|
||||
<h4 className="title">Failed to load remote configuration.</h4>
|
||||
</div>
|
||||
}
|
||||
{ !loadingStatus || loadingStatus === "success" && <BaseLayout /> }
|
||||
|
||||
Reference in New Issue
Block a user