aboutsummaryrefslogtreecommitdiff
path: root/src/components/chat_message
diff options
context:
space:
mode:
authorHJ <30-hj@users.noreply.git.pleroma.social>2021-05-31 11:15:44 +0000
committerHJ <30-hj@users.noreply.git.pleroma.social>2021-05-31 11:15:44 +0000
commit0ca0e642a43a75f8e903db7361158ad32b84ecc4 (patch)
treefd96ac1da4e8b463cc3094dfdf4c88103179c673 /src/components/chat_message
parent4e96af044224dc10b8cc4eb270e025f1b8a1d29a (diff)
parent80220c1b07436098a8d87ffc0fc49fadc79ac9a4 (diff)
Merge branch 'v-slot-upgrade' into 'develop'
Change old slot syntax (removed in vue3) to new one See merge request pleroma/pleroma-fe!1379
Diffstat (limited to 'src/components/chat_message')
-rw-r--r--src/components/chat_message/chat_message.vue32
1 files changed, 17 insertions, 15 deletions
diff --git a/src/components/chat_message/chat_message.vue b/src/components/chat_message/chat_message.vue
index 0777f880..0f3fc97d 100644
--- a/src/components/chat_message/chat_message.vue
+++ b/src/components/chat_message/chat_message.vue
@@ -50,7 +50,7 @@
@show="menuOpened = true"
@close="menuOpened = false"
>
- <div slot="content">
+ <template v-slot:content>
<div class="dropdown-menu">
<button
class="button-default dropdown-item dropdown-item-icon"
@@ -59,26 +59,28 @@
<FAIcon icon="times" /> {{ $t("chats.delete") }}
</button>
</div>
- </div>
- <button
- slot="trigger"
- class="button-default menu-icon"
- :title="$t('chats.more')"
- >
- <FAIcon icon="ellipsis-h" />
- </button>
+ </template>
+ <template v-slot:trigger>
+ <button
+ class="button-default menu-icon"
+ :title="$t('chats.more')"
+ >
+ <FAIcon icon="ellipsis-h" />
+ </button>
+ </template>
</Popover>
</div>
<StatusContent
:status="messageForStatusContent"
:full-content="true"
>
- <span
- slot="footer"
- class="created-at"
- >
- {{ createdAt }}
- </span>
+ <template v-slot:footer>
+ <span
+ class="created-at"
+ >
+ {{ createdAt }}
+ </span>
+ </template>
</StatusContent>
</div>
</div>