Skip to content

Commit

Permalink
Merge pull request #11557 from owncloud/fix/ocm-token-clipboard-copy
Browse files Browse the repository at this point in the history
fix(ocm): token copy after invitation
  • Loading branch information
JammingBen authored Sep 10, 2024
2 parents 9322349 + 2cbc423 commit d9d3131
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
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

0 comments on commit d9d3131

Please sign in to comment.