mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-12 02:02:15 +01:00
* add linter, prettier and typescript support for jetstream * add github actions for lint, build and typecheck * add composer install to build action * fix composer lock * add ext-intl and fixed php version * fix intl php extension install * add tip php extension to github npm build action * fix php version to 8.3.1 * change github php base action * fix primary button default type * updated typescript types from Team to Organization --------- Co-authored-by: Gregor Vostrak <gregorvostrak@Gregors-MacBook-Pro.local>
46 lines
1.5 KiB
Vue
46 lines
1.5 KiB
Vue
<script setup lang="ts">
|
|
import AppLayout from '@/Layouts/AppLayout.vue';
|
|
import DeleteTeamForm from '@/Pages/Teams/Partials/DeleteTeamForm.vue';
|
|
import SectionBorder from '@/Components/SectionBorder.vue';
|
|
import TeamMemberManager from '@/Pages/Teams/Partials/TeamMemberManager.vue';
|
|
import UpdateTeamNameForm from '@/Pages/Teams/Partials/UpdateTeamNameForm.vue';
|
|
import type { Organization } from '@/types/models';
|
|
import type { Permissions, Role } from '@/types/jetstream';
|
|
|
|
defineProps<{
|
|
team: Organization;
|
|
availableRoles: Role[];
|
|
permissions: Permissions;
|
|
}>();
|
|
</script>
|
|
|
|
<template>
|
|
<AppLayout title="Team Settings">
|
|
<template #header>
|
|
<h2
|
|
class="font-semibold text-xl text-gray-800 dark:text-gray-200 leading-tight">
|
|
Team Settings
|
|
</h2>
|
|
</template>
|
|
|
|
<div>
|
|
<div class="max-w-7xl mx-auto py-10 sm:px-6 lg:px-8">
|
|
<UpdateTeamNameForm :team="team" :permissions="permissions" />
|
|
|
|
<TeamMemberManager
|
|
class="mt-10 sm:mt-0"
|
|
:team="team"
|
|
:available-roles="availableRoles"
|
|
:user-permissions="permissions" />
|
|
|
|
<template
|
|
v-if="permissions.canDeleteTeam && !team.personal_team">
|
|
<SectionBorder />
|
|
|
|
<DeleteTeamForm class="mt-10 sm:mt-0" :team="team" />
|
|
</template>
|
|
</div>
|
|
</div>
|
|
</AppLayout>
|
|
</template>
|