guild-settings #35

Merged
sauceyred merged 42 commits from guild-settings into main 2025-07-13 02:26:37 +00:00
Showing only changes of commit 7ae7bc6d76 - Show all commits

View file

@ -7,24 +7,20 @@
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { InviteModal } from '#components'; import { render } from 'vue';
import InviteModal from './InviteModal.vue';
const modal = ref<HTMLDialogElement>();
const showInviteModal = ref(false);
const settings = [ const settings = [
{ name: "Invite", icon: "lucide:letter", action: openInviteModal } { name: "Invite", icon: "lucide:letter", action: openInviteModal }
] ]
function openInviteModal() { function openInviteModal() {
showInviteModal.value = true; const div = document.createElement("div");
const invitePopup = h(InviteModal); const guildId = useRoute().params.serverId as string;
} console.log("guild id:", guildId);
const inviteModal = h(InviteModal, { guildId });
function toggleInviteModal(e: Event) { document.body.appendChild(div);
e.preventDefault(); render(inviteModal, div);
showInviteModal.value = !showInviteModal.value;
} }
</script> </script>