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

Bugfix: Copy to clipboard text #8756

Merged
merged 4 commits into from
Mar 30, 2023
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-copy-clipboard-text
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Bugfix: Copy link to clipboard text

We've fixed an issue that caused the link message to display the wrong text

https://github.com/owncloud/web/pull/8756
https://github.com/owncloud/web/issues/8725
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default defineComponent({
}
},
setup(props) {
const { $gettext, interpolate: $gettextInterpolate } = useGettext()
const { $gettext } = useGettext()
const store = useStore<any>()

const {
Expand All @@ -56,13 +56,9 @@ export default defineComponent({
store.dispatch('showMessage', {
title: props.link.quicklink
? $gettext('The quicklink has been copied to your clipboard.')
: $gettextInterpolate(
$gettext('The link "%{linkName}" has been copied to your clipboard.'),
{
linkName: props.link.linkName
},
true
)
: $gettext('The link "%{linkName}" has been copied to your clipboard.', {
linkName: props.link.name
})
})
}

Expand Down