logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: dc04c8cbd48dd8dcfc6b1937663e57983d38562a
parent 39e4746f615970001839309e06a0f13d9613b175
Author: Tusooa Zhu <tusooa@kazv.moe>
Date:   Wed,  6 Apr 2022 14:54:58 -0400

Use vue3 teleport instead of portal

Diffstat:

Msrc/components/account_actions/account_actions.vue4++--
Msrc/components/desktop_nav/desktop_nav.vue4++--
Msrc/components/extra_buttons/extra_buttons.vue4++--
Msrc/components/follow_button/follow_button.vue4++--
Msrc/components/mobile_nav/mobile_nav.vue4++--
Msrc/components/retweet_button/retweet_button.vue4++--
Msrc/components/user_card/user_card.vue4++--
7 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/src/components/account_actions/account_actions.vue b/src/components/account_actions/account_actions.vue @@ -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> diff --git a/src/components/desktop_nav/desktop_nav.vue b/src/components/desktop_nav/desktop_nav.vue @@ -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> diff --git a/src/components/extra_buttons/extra_buttons.vue b/src/components/extra_buttons/extra_buttons.vue @@ -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> diff --git a/src/components/follow_button/follow_button.vue b/src/components/follow_button/follow_button.vue @@ -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> diff --git a/src/components/mobile_nav/mobile_nav.vue b/src/components/mobile_nav/mobile_nav.vue @@ -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> diff --git a/src/components/retweet_button/retweet_button.vue b/src/components/retweet_button/retweet_button.vue @@ -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> diff --git a/src/components/user_card/user_card.vue b/src/components/user_card/user_card.vue @@ -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>