Mission Refactor Big
This commit is contained in:
parent
0f275fc45d
commit
65fbac941e
@ -585,6 +585,21 @@ export default function MissionDetailPage() {
|
|||||||
|
|
||||||
{/* Action Buttons */}
|
{/* Action Buttons */}
|
||||||
<div className="flex gap-3">
|
<div className="flex gap-3">
|
||||||
|
{/* Delete Button */}
|
||||||
|
<Button
|
||||||
|
variant="outline"
|
||||||
|
className="flex items-center gap-2 border-red-600 text-red-600 hover:bg-red-50 bg-white"
|
||||||
|
onClick={handleDeleteMission}
|
||||||
|
disabled={deleting}
|
||||||
|
>
|
||||||
|
{deleting ? (
|
||||||
|
<Loader2 className="h-4 w-4 animate-spin" />
|
||||||
|
) : (
|
||||||
|
<Trash2 className="h-4 w-4" />
|
||||||
|
)}
|
||||||
|
Supprimer
|
||||||
|
</Button>
|
||||||
|
|
||||||
{/* Close Button - only show if not already closed */}
|
{/* Close Button - only show if not already closed */}
|
||||||
{!mission.isClosed && (
|
{!mission.isClosed && (
|
||||||
<Button
|
<Button
|
||||||
@ -601,21 +616,6 @@ export default function MissionDetailPage() {
|
|||||||
Clôturer
|
Clôturer
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{/* Delete Button */}
|
|
||||||
<Button
|
|
||||||
variant="outline"
|
|
||||||
className="flex items-center gap-2 border-red-600 text-red-600 hover:bg-red-50 bg-white"
|
|
||||||
onClick={handleDeleteMission}
|
|
||||||
disabled={deleting}
|
|
||||||
>
|
|
||||||
{deleting ? (
|
|
||||||
<Loader2 className="h-4 w-4 animate-spin" />
|
|
||||||
) : (
|
|
||||||
<Trash2 className="h-4 w-4" />
|
|
||||||
)}
|
|
||||||
Supprimer
|
|
||||||
</Button>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</TabsContent>
|
</TabsContent>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user