feat: 🎸 show copyable error details in error page

This commit is contained in:
Randall Morey committed 2021-04-14 16:11:13 -04:00
1 parent 288a38f6ea
commit 3836656042
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>