feat: update to new slot syntax
Prepare for vue 3
This commit is contained in:

committed by
kolaente

parent
77f8b27dc6
commit
4454e6cf22
@ -110,11 +110,12 @@
|
||||
v-if="showDeleteModal"
|
||||
@submit="deleteAttachment()"
|
||||
>
|
||||
<span slot="header">{{ $t('task.attachment.delete') }}</span>
|
||||
<p slot="text">
|
||||
{{ $t('task.attachment.deleteText1', {filename: attachmentToDelete.file.name}) }}<br/>
|
||||
<strong>{{ $t('task.attachment.deleteText2') }}</strong>
|
||||
</p>
|
||||
<template #header><span>{{ $t('task.attachment.delete') }}</span></template>
|
||||
|
||||
<template #text>
|
||||
<p>{{ $t('task.attachment.deleteText1', {filename: attachmentToDelete.file.name}) }}<br/>
|
||||
<strong>{{ $t('task.attachment.deleteText2') }}</strong></p>
|
||||
</template>
|
||||
</modal>
|
||||
</transition>
|
||||
|
||||
|
@ -138,11 +138,12 @@
|
||||
@submit="deleteComment()"
|
||||
v-if="showDeleteModal"
|
||||
>
|
||||
<span slot="header">{{ $t('task.comment.delete') }}</span>
|
||||
<p slot="text">
|
||||
{{ $t('task.comment.deleteText1') }}<br/>
|
||||
<strong>{{ $t('task.comment.deleteText2') }}</strong>
|
||||
</p>
|
||||
<template #header><span>{{ $t('task.comment.delete') }}</span></template>
|
||||
|
||||
<template #text>
|
||||
<p>{{ $t('task.comment.deleteText1') }}<br/>
|
||||
<strong>{{ $t('task.comment.deleteText2') }}</strong></p>
|
||||
</template>
|
||||
</modal>
|
||||
</transition>
|
||||
</div>
|
||||
|
@ -16,7 +16,7 @@
|
||||
v-model="assignees"
|
||||
ref="multiselect"
|
||||
>
|
||||
<template v-slot:tag="props">
|
||||
<template #tag="props">
|
||||
<span class="assignee">
|
||||
<user :avatar-size="32" :show-username="false" :user="props.item"/>
|
||||
<a @click="removeAssignee(props.item)" class="remove-assignee" v-if="!disabled">
|
||||
|
@ -13,7 +13,7 @@
|
||||
v-model="labels"
|
||||
:search-delay="10"
|
||||
>
|
||||
<template v-slot:tag="props">
|
||||
<template #tag="props">
|
||||
<span
|
||||
:style="{'background': props.item.hexColor, 'color': props.item.textColor}"
|
||||
class="tag">
|
||||
@ -21,7 +21,7 @@
|
||||
<a @click="removeLabel(props.item)" class="delete is-small"></a>
|
||||
</span>
|
||||
</template>
|
||||
<template v-slot:searchResult="props">
|
||||
<template #searchResult="props">
|
||||
<span
|
||||
v-if="typeof props.option === 'string'"
|
||||
class="tag">
|
||||
|
@ -10,7 +10,7 @@
|
||||
v-model="list"
|
||||
:select-placeholder="$t('list.searchSelect')"
|
||||
>
|
||||
<template v-slot:searchResult="props">
|
||||
<template #searchResult="props">
|
||||
<span class="list-namespace-title search-result">{{ namespace(props.option.namespaceId) }} ></span>
|
||||
{{ props.option.title }}
|
||||
</template>
|
||||
|
@ -36,7 +36,7 @@
|
||||
:create-placeholder="$t('task.relation.createPlaceholder')"
|
||||
@create="createAndRelateTask"
|
||||
>
|
||||
<template v-slot:searchResult="props">
|
||||
<template #searchResult="props">
|
||||
<span v-if="typeof props.option !== 'string'" class="search-result">
|
||||
<span
|
||||
class="different-list"
|
||||
@ -107,12 +107,14 @@
|
||||
<modal
|
||||
@close="showDeleteModal = false"
|
||||
@submit="removeTaskRelation()"
|
||||
v-if="showDeleteModal">
|
||||
<span slot="header">{{ $t('task.relation.delete') }}</span>
|
||||
<p slot="text">
|
||||
{{ $t('task.relation.deleteText1') }}<br/>
|
||||
<strong>{{ $t('task.relation.deleteText2') }}</strong>
|
||||
</p>
|
||||
v-if="showDeleteModal"
|
||||
>
|
||||
<template #header><span>{{ $t('task.relation.delete') }}</span></template>
|
||||
|
||||
<template #text>
|
||||
<p>{{ $t('task.relation.deleteText1') }}<br/>
|
||||
<strong>{{ $t('task.relation.deleteText2') }}</strong></p>
|
||||
</template>
|
||||
</modal>
|
||||
</transition>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user