Merge pull request #534 from hashicorp/chore-more-error-info

feat: 🎸 show copyable error details in error page
This commit is contained in:
Susmitha Girumala authored and GitHub committed 2021-04-14 16:42:19 -04:00
commit 1b449bdea4
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
+10 -1
View File
@@ -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>