11<script setup lang="ts">
22import { Link , usePage } from ' @inertiajs/vue3' ;
3- import { IconTrash } from ' @tabler/icons-vue' ;
43import { computed , ref } from ' vue' ;
54
65import ConfirmDeleteModal from ' @/components/ConfirmDeleteModal.vue' ;
@@ -24,7 +23,7 @@ const { canManageBilling } = useWorkspaceRole();
2423
2524const deleteModal = ref <InstanceType <typeof ConfirmDeleteModal > | null >(null );
2625
27- const description = computed (() => {
26+ const warningMessage = computed (() => {
2827 if (props .isOnlyWorkspace ) {
2928 return ' settings.workspace.delete_only_description' ;
3029 }
@@ -51,30 +50,26 @@ const openDeleteModal = () => {
5150 </script >
5251
5352<template >
54- <section class =" space-y-4 " dusk =" workspace-danger-zone" >
53+ <div class =" space-y-6 " dusk =" workspace-danger-zone" >
5554 <HeadingSmall
56- :title =" $t (' settings.workspace.danger_title ' )"
55+ :title =" $t (' settings.workspace.delete_title ' )"
5756 :description =" $t (' settings.workspace.danger_description' )"
5857 />
5958
60- <div
61- class =" flex items-center justify-between gap-4 rounded-xl border-2 border-destructive/30 bg-destructive/5 p-4"
62- >
63- <div class =" text-sm" >
64- <p class =" font-medium" >
65- {{ $t('settings.workspace.delete_title') }}
66- </p >
67- <p class =" text-foreground/60" >
68- {{ $t(description) }}
59+ <div class =" space-y-4 rounded-xl border-2 border-foreground bg-rose-50 p-4 shadow-2xs" >
60+ <div class =" relative space-y-0.5 text-rose-700" >
61+ <p class =" font-bold" >{{ $t('settings.delete_account.warning') }}</p >
62+ <p class =" text-sm font-medium" >
63+ {{ $t(warningMessage) }}
6964 </p >
7065 </div >
66+
7167 <Button
7268 v-if =" ! isOnlyWorkspace "
7369 variant="destructive"
7470 dusk="workspace-delete"
7571 @click =" openDeleteModal "
7672 >
77- <IconTrash class="size-4" />
7873 {{ $t('settings.workspace.delete_action') }}
7974 </Button >
8075 <Button
@@ -96,5 +91,5 @@ const openDeleteModal = () => {
9691 :action =" $t (' settings.workspace.delete_action' )"
9792 :cancel =" $t (' settings.workspace.delete_cancel' )"
9893 />
99- </section >
94+ </div >
10095</template >
0 commit comments