Improved team system

This commit is contained in:
2023-05-11 19:46:18 +02:00
parent cde8e6c827
commit 51705f8651
22 changed files with 811 additions and 32 deletions

View File

@@ -37,7 +37,7 @@
</div>
<div class="mb-10 mt-5 flex justify-center gap-x-3">
<Button type="danger" @click="leaveTeam">Leave Team</Button>
<Button @click="openTeamModal">Edit Team</Button>
<Button v-if="user.team.admin" @click="openTeamModal">Edit Team</Button>
</div>
<h2 class="mb-2 text-xl font-bold text-primary">Team Members</h2>
<div class="space-y-5 rounded border-[1px] border-primary p-5 text-primary">

View File

@@ -28,7 +28,7 @@
</div>
</div>
<div v-else class="flex w-full flex-col items-center gap-5">
<Input v-model:value="createTeam.name" class="w-full max-w-sm">Naam / Prefix</Input>
<Input v-model:value="createTeam.name" class="w-full max-w-sm">Naam</Input>
<Colorpicker v-model:value="createTeam.color" class="w-full max-w-sm" />
<Button @click="handleCreateTeam">Create Team</Button>
</div>