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

fix(ocm): token copy after invitation #11557

Merged
merged 1 commit into from
Sep 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions changelog/unreleased/bugfix-ocm-token-clipboard-copy
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Bugfix: OCM token clipboard copy

We've fixed an issue where the token was not being copied to the clipboard after creating an OCM invitation.

https://github.com/owncloud/web/pull/11557
https://github.com/owncloud/web/issues/11552
6 changes: 3 additions & 3 deletions packages/web-app-ocm/src/views/OutgoingInvitations.vue
Original file line number Diff line number Diff line change
Expand Up @@ -231,16 +231,16 @@ export default defineComponent({
title: $gettext('Success'),
status: 'success',
desc: recipient
? $gettext('New invitation link has been created and sent to %{recipient}.', {
? $gettext('New token has been created and sent to %{recipient}.', {
recipient
})
: $gettext(
'New invitation link has been created and copied to your clipboard. Send it to the invitee(s).'
'New token has been created and copied to your clipboard. Send it to the invitee(s).'
)
})
lastCreatedToken.value = tokenInfo.token
if (!recipient) {
navigator.clipboard.writeText(tokenInfo.invite_link)
navigator.clipboard.writeText(tokenInfo.token)
}
}
} catch (error) {
Expand Down