1
0
mirror of https://git.pleroma.social/sjw/pleroma-fe.git synced 2024-12-23 15:05:04 +01:00

Use vue3 teleport instead of portal

This commit is contained in:
Tusooa Zhu 2022-04-06 14:54:58 -04:00 committed by tusooa
parent 39e4746f61
commit dc04c8cbd4
No known key found for this signature in database
GPG Key ID: 7B467EDE43A08224
7 changed files with 14 additions and 14 deletions

View File

@ -74,7 +74,7 @@
</button>
</template>
</Popover>
<portal to="modal">
<teleport to="#modal">
<confirm-modal
v-if="showingConfirmBlock"
:title="$t('user_card.block_confirm_title')"
@ -93,7 +93,7 @@
/>
</i18n>
</confirm-modal>
</portal>
</teleport>
</div>
</template>

View File

@ -76,7 +76,7 @@
</button>
</div>
</div>
<portal to="modal">
<teleport to="#modal">
<confirm-modal
v-if="showingConfirmLogout"
:title="$t('login.logout_confirm_title')"
@ -87,7 +87,7 @@
>
{{ $t('login.logout_confirm') }}
</confirm-modal>
</portal>
</teleport>
</nav>
</template>
<script src="./desktop_nav.js"></script>

View File

@ -165,7 +165,7 @@
/>
</FALayers>
</span>
<portal to="modal">
<teleport to="#modal">
<ConfirmModal
v-if="showingDeleteDialog"
:title="$t('status.delete_confirm_title')"
@ -176,7 +176,7 @@
>
{{ $t('status.delete_confirm') }}
</ConfirmModal>
</portal>
</teleport>
</template>
</Popover>
</template>

View File

@ -7,7 +7,7 @@
@click="onClick"
>
{{ label }}
<portal to="modal">
<teleport to="#modal">
<confirm-modal
v-if="showingConfirmUnfollow"
:title="$t('user_card.unfollow_confirm_title')"
@ -26,7 +26,7 @@
/>
</i18n>
</confirm-modal>
</portal>
</teleport>
</button>
</template>

View File

@ -88,7 +88,7 @@
ref="sideDrawer"
:logout="logout"
/>
<portal to="modal">
<teleport to="#modal">
<confirm-modal
v-if="showingConfirmLogout"
:title="$t('login.logout_confirm_title')"
@ -99,7 +99,7 @@
>
{{ $t('login.logout_confirm') }}
</confirm-modal>
</portal>
</teleport>
</div>
</template>

View File

@ -59,7 +59,7 @@
>
{{ status.repeat_num }}
</span>
<portal to="modal">
<teleport to="#modal">
<confirm-modal
v-if="showingConfirmDialog"
:title="$t('status.repeat_confirm_title')"
@ -70,7 +70,7 @@
>
{{ $t('status.repeat_confirm') }}
</confirm-modal>
</portal>
</teleport>
</div>
</template>

View File

@ -314,7 +314,7 @@
:handle-links="true"
/>
</div>
<portal to="modal">
<teleport to="#modal">
<confirm-modal
v-if="showingConfirmMute"
:title="$t('user_card.mute_confirm_title')"
@ -333,7 +333,7 @@
/>
</i18n>
</confirm-modal>
</portal>
</teleport>
</div>
</template>