From bf97fd2920815d9ccb7dd162b26f48b667c64c94 Mon Sep 17 00:00:00 2001
From: Alex ORLUC <alex.orluc@maarch.org>
Date: Wed, 12 Feb 2020 16:54:17 +0100
Subject: [PATCH] rm comment

---
 .../sended-resource-page.component.html                     | 4 ++--
 .../sended-resource-page/sended-resource-page.component.ts  | 6 ++----
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/frontend/app/sendedResource/sended-resource-page/sended-resource-page.component.html b/src/frontend/app/sendedResource/sended-resource-page/sended-resource-page.component.html
index fc786c4f661..a468c259689 100644
--- a/src/frontend/app/sendedResource/sended-resource-page/sended-resource-page.component.html
+++ b/src/frontend/app/sendedResource/sended-resource-page/sended-resource-page.component.html
@@ -13,8 +13,8 @@
                 {{email.label}} ({{email.email}})
             </mat-option>
         </mat-select>
-        <button mat-button matSuffix [class.activeButton]="showCopies" (click)="$event.stopPropagation();showCopies = !showCopies">Cc</button>
-        <button mat-button matSuffix [class.activeButton]="showInvisibleCopies"
+        <button mat-button color="primary" matSuffix [class.activeButton]="showCopies" (click)="$event.stopPropagation();showCopies = !showCopies">Cc</button>
+        <button mat-button color="primary" matSuffix [class.activeButton]="showInvisibleCopies"
             (click)="$event.stopPropagation();showInvisibleCopies = !showInvisibleCopies">Cci</button>
     </mat-form-field>
 
diff --git a/src/frontend/app/sendedResource/sended-resource-page/sended-resource-page.component.ts b/src/frontend/app/sendedResource/sended-resource-page/sended-resource-page.component.ts
index 50a013eb87b..a2851971c65 100644
--- a/src/frontend/app/sendedResource/sended-resource-page/sended-resource-page.component.ts
+++ b/src/frontend/app/sendedResource/sended-resource-page/sended-resource-page.component.ts
@@ -370,9 +370,7 @@ export class SendedResourcePageComponent implements OnInit {
     }
 
     onSubmit() {
-        console.log(this.formatEmail());
-
-        /*this.http.post(`../../rest/emails`, this.formatEmail()).pipe(
+        this.http.post(`../../rest/emails`, this.formatEmail()).pipe(
             tap(() => {
                 this.notify.success("Email en cours d'envoi...")
                 this.dialogRef.close('success');
@@ -381,7 +379,7 @@ export class SendedResourcePageComponent implements OnInit {
                 this.notify.handleSoftErrors(err);
                 return of(false);
             })
-        ).subscribe();*/
+        ).subscribe();
     }
 
     drop(event: CdkDragDrop<string[]>) {
-- 
GitLab