Skip to content

Commit

Permalink
Add "Copy report as page hash" button
Browse files Browse the repository at this point in the history
  • Loading branch information
lahmatiy committed Oct 30, 2023
1 parent dae4fab commit 72a41c0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
- Added separate colors for keywords and assertions in a query editor
- Added `Popup#showDelay` option to control the behavior of popup appearance. The option specifies the delay in milliseconds after the pointer stops moving over a trigger before the popup is displayed. By default, there is no delay. When set to true, the default delay of 300 milliseconds is applied. If a positive number is provided, it is used as the delay, while other values are treated as 0, resulting in an immediate show.
- Added third parameter for `Popup#show()` method, when set to a truthy value it specifies to bypass show delay if any
- Added "Copy report as page hash" button
- Fixed "Copy report permalink" button being always disabled
- Fixed `defaultPage` option to have no effect
- Fixed the "Copy report permalink" button being always disabled
- Uniformed font and size for monospace views
- Enlarged action buttons in `struct` and `structure` views
- Changed rendering of after-annotations to render in a prelude when a value is expanded
Expand Down
6 changes: 5 additions & 1 deletion src/pages/report/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ export default function(host, updateParams) {
disabled: !host.action.has('permalink'),
action: async () => copyText(await host.action.call('permalink', host.pageHash))
},
{
text: 'Copy report as page hash',
action: () => copyText(host.pageHash)
},
{
text: 'Copy report as JSON',
action: () => copyText(exportReportAsJson(host.pageParams))
Expand All @@ -77,7 +81,7 @@ export default function(host, updateParams) {
}),
createElement('button', {
class: 'share',
title: 'Share ...',
title: 'Sharing',
onclick: ({ target }) => {
target.blur();
shareOptionsPopup.show(target);
Expand Down

0 comments on commit 72a41c0

Please sign in to comment.