feat: remove hardcoded InviteModal from GuildOptionsMenu
This commit is contained in:
parent
9d49012fb9
commit
9293a48394
1 changed files with 0 additions and 15 deletions
|
@ -4,7 +4,6 @@
|
||||||
<button class="guild-option-button" @click="setting.action">{{ setting.name }}</button>
|
<button class="guild-option-button" @click="setting.action">{{ setting.name }}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<InviteModal ref="modal" v-if="showInviteModal" />
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
|
@ -18,20 +17,6 @@ const settings = [
|
||||||
{ name: "Invite", icon: "lucide:letter", action: openInviteModal }
|
{ name: "Invite", icon: "lucide:letter", action: openInviteModal }
|
||||||
]
|
]
|
||||||
|
|
||||||
onMounted(() => {
|
|
||||||
if (modal.value) {
|
|
||||||
modal.value.addEventListener("close", () => {
|
|
||||||
console.log("MODAL CLOSED");
|
|
||||||
showInviteModal.value = false;
|
|
||||||
});
|
|
||||||
|
|
||||||
modal.value.addEventListener("cancel", () => {
|
|
||||||
console.log("MODAL CANCELED");
|
|
||||||
showInviteModal.value = false;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
function openInviteModal() {
|
function openInviteModal() {
|
||||||
showInviteModal.value = true;
|
showInviteModal.value = true;
|
||||||
const invitePopup = h(InviteModal);
|
const invitePopup = h(InviteModal);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue