diff --git a/src/components/extra_buttons/extra_buttons.js b/src/components/extra_buttons/extra_buttons.js index b38876b8..f15eb849 100644 --- a/src/components/extra_buttons/extra_buttons.js +++ b/src/components/extra_buttons/extra_buttons.js @@ -95,6 +95,11 @@ const ExtraButtons = { .then(() => this.$emit('onSuccess')) .catch(err => this.$emit('onError', err.error.error)) }, + copyLinkRemote () { + navigator.clipboard.writeText(this.status.external_url) + .then(() => this.$emit('onSuccess')) + .catch(err => this.$emit('onError', err.error.error)) + }, bookmarkStatus () { this.$store.dispatch('bookmark', { id: this.status.id }) .then(() => this.$emit('onSuccess')) diff --git a/src/components/extra_buttons/extra_buttons.vue b/src/components/extra_buttons/extra_buttons.vue index 9da2ad8c..d7925830 100644 --- a/src/components/extra_buttons/extra_buttons.vue +++ b/src/components/extra_buttons/extra_buttons.vue @@ -139,6 +139,17 @@ icon="external-link-alt" />{{ $t("status.external_source") }} +