fix: profile modal staying open even if view/route is changed
This commit is contained in:
parent
1ac3042470
commit
ef9b70410b
3 changed files with 6 additions and 2 deletions
2
app.vue
2
app.vue
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<Banner v-if="banner" />
|
<Banner v-if="banner" />
|
||||||
<NuxtPage :keepalive="true" />
|
<NuxtPage />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<span class="member-display-name">{{ getDisplayName(props.member) }}</span>
|
<span class="member-display-name">{{ getDisplayName(props.member) }}</span>
|
||||||
</div>
|
</div>
|
||||||
<ModalProfilePopup v-if="modalPopupVisible" :profile="props.member"
|
<ModalProfilePopup v-if="modalPopupVisible" :profile="props.member"
|
||||||
:onFinish="hideModalPopup"/>
|
:onFinish="hideModalPopup" :keepalive="false"/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
|
|
|
@ -57,6 +57,10 @@ import Button from '~/components/UserInterface/Button.vue';
|
||||||
import VerticalSpacer from '~/components/UserInterface/VerticalSpacer.vue';
|
import VerticalSpacer from '~/components/UserInterface/VerticalSpacer.vue';
|
||||||
import type { GuildResponse } from '~/types/interfaces';
|
import type { GuildResponse } from '~/types/interfaces';
|
||||||
|
|
||||||
|
definePageMeta({
|
||||||
|
keepalive: true
|
||||||
|
});
|
||||||
|
|
||||||
const loading = useState("loading", () => false);
|
const loading = useState("loading", () => false);
|
||||||
|
|
||||||
const createButtonContainer = ref<HTMLButtonElement>();
|
const createButtonContainer = ref<HTMLButtonElement>();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue