Closed emillen closed 1 year ago
Name | Link |
---|---|
Latest commit | 21b85696359c64402219debc81af94bf32d4c59e |
Latest deploy log | https://app.netlify.com/sites/peaceful-beignet-dcf974/deploys/640836de6048cb0008b4e346 |
Deploy Preview | https://deploy-preview-555--peaceful-beignet-dcf974.netlify.app/ |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site settings.
What do you say - does this need more work, or are we fine like this?
Can you include a screenshot in the PR description? Thanks.
Actually ignore that. There's probably nothing different. I'll merge.
Use nunjucks-templates to modify AlertDetail copy-button behavior
Description Sometimes you want the ability to copy an alert so you can paste into a third party system (slack, email, etc) in human-readable way. This PR allows for setting a nunjuck-template used for formatting the JSON before putting it in the clipboard.
Fixes #522
Changes
clipboard_template
setting is set, the webui uses its contents as template for the AlertDetail copy buttonclipboard_template
is not set, it defaults to previous behaviorIf you think this is a good idea and merge this, I will add PR's for adding the setting in the backend, and also add it to the docs.
Ex:
Provided following alert-json
and this template
would put the following text in your clipboard