diff options
author | Marco <marcoambrosini@icloud.com> | 2022-08-10 16:06:14 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-10 16:06:14 +0300 |
commit | da138aa9af8a74ba4488a418ad17ac7b2bea8073 (patch) | |
tree | 401350b58e1f2caf7c9cce7327c4bfffb7ec898d /src | |
parent | 7ddf77566d623d50eb3a4b571c1bca04d8e60ec8 (diff) | |
parent | b3b7b76f564ab64269926dd650e612ca8a2cf3f3 (diff) |
Merge pull request #7699 from nextcloud/bugfix/noid/move-copy-link-to-vue
Move "Copy link" of empty call screen to Vue
Diffstat (limited to 'src')
-rw-r--r-- | src/components/CallView/shared/EmptyCallView.vue | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/components/CallView/shared/EmptyCallView.vue b/src/components/CallView/shared/EmptyCallView.vue index 797a02fd0..d2d8fb690 100644 --- a/src/components/CallView/shared/EmptyCallView.vue +++ b/src/components/CallView/shared/EmptyCallView.vue @@ -27,15 +27,16 @@ <p v-if="message" class="emptycontent-additional"> {{ message }} </p> - <button v-if="showLink" - class="primary" + <ButtonVue v-if="showLink" + type="primary" @click.stop.prevent="copyLinkToConversation"> {{ t('spreed', 'Copy link') }} - </button> + </ButtonVue> </div> </template> <script> +import ButtonVue from '@nextcloud/vue/dist/Components/Button' import { showError, showSuccess } from '@nextcloud/dialogs' import { generateUrl } from '@nextcloud/router' import { CONVERSATION, PARTICIPANT } from '../../../constants.js' @@ -44,6 +45,10 @@ export default { name: 'EmptyCallView', + components: { + ButtonVue, + }, + props: { isGrid: { type: Boolean, @@ -175,6 +180,8 @@ export default { align-content: center; justify-content: center; text-align: center; + z-index: 1; // Otherwise the "Copy link" button is not clickable + .icon { background-size: 64px; height: 64px; |