Merge pull request #534 from hashicorp/chore-more-error-info
feat: 🎸 show copyable error details in error page
This commit is contained in:
3 files changed
+19
-1
No files matched your search
@@ -16,6 +16,7 @@ back: Back
|
||||
retry: Retry
|
||||
get-topic-help: Get help for this topic
|
||||
copy-to-clipboard: Copy to Clipboard
|
||||
copy-error-detail-to-clipboard: Copy error detail to clipboard
|
||||
authenticate: Authenticate
|
||||
deauthenticate: Deauthenticate
|
||||
choose-org: Choose Scope
|
||||
|
||||
@@ -1,3 +1,12 @@
|
||||
import Route from '@ember/routing/route';
|
||||
|
||||
export default class AuthenticationErrorRoute extends Route {}
|
||||
export default class AuthenticationErrorRoute extends Route {
|
||||
// =methods
|
||||
|
||||
/**
|
||||
* @return {string}
|
||||
*/
|
||||
model() {
|
||||
return window.location.toString();
|
||||
}
|
||||
}
|
||||
@@ -7,6 +7,14 @@
|
||||
@heading={{t "auth.titles.flow-error"}}
|
||||
>
|
||||
{{t "auth.descriptions.flow-error"}}
|
||||
<br>
|
||||
<Copyable
|
||||
@text={{@model}}
|
||||
@buttonText={{t "actions.copy-error-detail-to-clipboard"}}
|
||||
@acknowledgeText={{t "states.copied"}}
|
||||
>
|
||||
{{t "actions.copy-error-detail-to-clipboard"}}
|
||||
</Copyable>
|
||||
</Rose::Notification>
|
||||
</Rose::Layout::Centered>
|
||||
</main>
|
||||
Reference in new issue
Block a user