consul/ui/packages/consul-ui/app/helpers
John Cowen 6e396e4456
ui: Gracefully recover from non-existent DC errors (#11077)
* ui: Gracefully recover from non-existent DC errors

This PR fixes what happens in the UI if you try to navigate to a non-existing DC.

When we received a 500 error from an API response due to a non-existent DC, previously we would show a 404 error, which is what we were trying to convey. But in the spirit of the UI being a 'thin client', its probably best to just show the 500 error from the API response, which may help folks to debug any issues better.

* Automatically set the CONSUL_DATACENTER_LOCAL env var for testing
2021-09-22 18:26:36 +01:00
..
policy
service ui: Add Vault as a Service External Source (#10769) 2021-08-04 18:22:43 -04:00
token
atob.js
cached-model.js ui: Gracefully recover from non-existent DC errors (#11077) 2021-09-22 18:26:36 +01:00
collection.js
document-attrs.js
dom-position.js
duration-from.js ui: Adds human formatting to nanosecond based session durations (#10062) 2021-04-28 12:12:56 +01:00
duration-from.mdx ui: Adds human formatting to nanosecond based session durations (#10062) 2021-04-28 12:12:56 +01:00
env.js
flatten-property.js ui: Improves UI engineering docs (#9875) 2021-03-17 15:58:17 +00:00
format-short-time.js
href-to.js ui: Support Route optional parameters/segments (#10212) 2021-05-26 17:43:46 +01:00
is-href.js ui: Support Route optional parameters/segments (#10212) 2021-05-26 17:43:46 +01:00
is-href.mdx ui: Improves UI engineering docs (#9875) 2021-03-17 15:58:17 +00:00
last.js
left-trim.js
refresh-route.js
render-template.js
right-trim.js
route-match.js
slugify.js
split.js
state-matches.js
substr.js
svg-curve.js
to-route.js ui: Improves UI engineering docs (#9875) 2021-03-17 15:58:17 +00:00
tween-to.js
uniq-by.js
unique-id.js
uri.js