Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(xo-web/proxies): copy proxy URL #6287

Merged
merged 8 commits into from
Jun 27, 2022
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

> Users must be able to say: “Nice enhancement, I'm eager to test it”

- [Proxies] Possibility to copy the proxy access url (PR [#6287](https://github.com/vatesfr/xen-orchestra/pull/6287))
pdonias marked this conversation as resolved.
Show resolved Hide resolved

### Bug fixes

> Users must be able to say: “I had this issue, happy to know it's fixed”
Expand All @@ -31,5 +33,6 @@

- @vates/read-chunk major
- xo-server patch
- xo-web minor

<!--packages-end-->
1 change: 1 addition & 0 deletions packages/xo-web/src/common/intl/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -2417,6 +2417,7 @@ const messages = {
noProxiesAvailable: 'No proxies available',
checkProxyHealth: 'Test your proxy',
updateProxyApplianceSettings: 'Update appliance settings',
proxyCopyUrl: 'Copy proxy URL',
proxyTestSuccess: 'Test passed for {name}',
proxyTestSuccessMessage: 'The proxy appears to work correctly',
proxyTestFailed: 'Test failed for {name}',
Expand Down
7 changes: 7 additions & 0 deletions packages/xo-web/src/xo-app/proxies/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ const ACTIONS = [
]

const INDIVIDUAL_ACTIONS = [
{
collapsed: true,
disabled: ({ url }) => url === undefined,
pdonias marked this conversation as resolved.
Show resolved Hide resolved
handler: ({ url }) => navigator.clipboard.writeText(url),
pdonias marked this conversation as resolved.
Show resolved Hide resolved
icon: 'clipboard',
label: _('proxyCopyUrl'),
pdonias marked this conversation as resolved.
Show resolved Hide resolved
},
{
collapsed: true,
handler: (proxy, { deployProxy }) =>
Expand Down