mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-12 01:37:40 +02:00
3 files changed
+11
-11
No files matched your search
@@ -818,12 +818,12 @@ export default function Sidebar() {
|
||||
<span className="font-medium">Prissela</span>
|
||||
</div>
|
||||
</SelectItem>
|
||||
<SelectItem value="Célia" className="py-3">
|
||||
<SelectItem value="Jeremy" className="py-3">
|
||||
<div className="flex items-center space-x-3">
|
||||
<div className="h-8 w-8 bg-pink-100 rounded-full flex items-center justify-center">
|
||||
<span className="text-sm font-medium text-pink-600">C</span>
|
||||
<div className="h-8 w-8 bg-blue-100 rounded-full flex items-center justify-center">
|
||||
<span className="text-sm font-medium text-blue-600">J</span>
|
||||
</div>
|
||||
<span className="font-medium">Célia</span>
|
||||
<span className="font-medium">Jeremy</span>
|
||||
</div>
|
||||
</SelectItem>
|
||||
</SelectContent>
|
||||
|
||||
@@ -39,7 +39,7 @@ export default function WebhookBAPConfig() {
|
||||
if (!formData.webhookUrl) {
|
||||
throw new Error("URL webhook requise pour le test");
|
||||
}
|
||||
|
||||
|
||||
const response = await fetch('/api/webhook-bap-config/test', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
@@ -163,7 +163,7 @@ export default function WebhookBAPConfig() {
|
||||
Configuration Webhook BAP
|
||||
</CardTitle>
|
||||
<CardDescription>
|
||||
Configurez l'URL du webhook n8n pour l'envoi des fichiers BAP vers Prissela et Célia
|
||||
Configurez l'URL du webhook n8n pour l'envoi des fichiers BAP vers Prissela et Jeremy
|
||||
</CardDescription>
|
||||
</CardHeader>
|
||||
<CardContent className="space-y-6">
|
||||
@@ -230,7 +230,7 @@ export default function WebhookBAPConfig() {
|
||||
</CardHeader>
|
||||
<CardContent>
|
||||
<div className="flex items-center gap-4">
|
||||
<Button
|
||||
<Button
|
||||
onClick={handleTest}
|
||||
disabled={testMutation.isPending || !formData.webhookUrl}
|
||||
className="flex items-center gap-2"
|
||||
@@ -247,14 +247,14 @@ export default function WebhookBAPConfig() {
|
||||
</>
|
||||
)}
|
||||
</Button>
|
||||
|
||||
|
||||
{testMutation.isSuccess && (
|
||||
<div className="flex items-center gap-2 text-green-600">
|
||||
<CheckCircle2 className="w-4 h-4" />
|
||||
<span className="text-sm">Connexion réussie</span>
|
||||
</div>
|
||||
)}
|
||||
|
||||
|
||||
{testMutation.isError && (
|
||||
<div className="flex items-center gap-2 text-red-600">
|
||||
<AlertCircle className="w-4 h-4" />
|
||||
@@ -266,7 +266,7 @@ export default function WebhookBAPConfig() {
|
||||
</Card>
|
||||
|
||||
<div className="flex justify-end gap-4">
|
||||
<Button
|
||||
<Button
|
||||
onClick={handleSave}
|
||||
disabled={saveMutation.isPending}
|
||||
className="flex items-center gap-2"
|
||||
|
||||
+1
-1
@@ -695,7 +695,7 @@ export async function registerRoutes(app: Express): Promise<Server> {
|
||||
return res.status(400).json({ error: 'Données manquantes: pdfBase64, fileName ou recipient' });
|
||||
}
|
||||
|
||||
if (!['Prissela', 'Célia'].includes(recipient)) {
|
||||
if (!['Prissela', 'Jeremy'].includes(recipient)) {
|
||||
return res.status(400).json({ error: 'Destinataire invalide' });
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user