Browse Source

Move "Copy link" of empty call screen to Vue

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/7699/head
Joas Schilling 3 years ago
parent
commit
b3b7b76f56
No known key found for this signature in database GPG Key ID: 74434EFE0D2E2205
  1. 13
      src/components/CallView/shared/EmptyCallView.vue

13
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;

Loading…
Cancel
Save