Skip to content
Snippets Groups Projects
Commit 008ad56f authored by Etienne LOUPIAS's avatar Etienne LOUPIAS
Browse files

chore(v3): replace textarea by app-textarea (#475)

parent 5b7b2061
No related branches found
No related tags found
1 merge request!783V3.0.0
...@@ -446,12 +446,11 @@ ...@@ -446,12 +446,11 @@
Votre commentaire sera envoyé aux administrateurs pour une prise en compte de votre remarque. Si vous souhaitez Votre commentaire sera envoyé aux administrateurs pour une prise en compte de votre remarque. Si vous souhaitez
avoir un retour, merci de préciser votre contact. avoir un retour, merci de préciser votre contact.
</p> </p>
<textarea <app-textarea
#myText #myText
id="story" class="errorTextarea"
class="textarea" id="errorTextarea"
name="story" label=""
rows="6"
placeholder="Décrivez l'erreur ici. Ex: Horaires faux..." placeholder="Décrivez l'erreur ici. Ex: Horaires faux..."
></textarea> />
</app-modal> </app-modal>
...@@ -267,8 +267,8 @@ section.updatedAt { ...@@ -267,8 +267,8 @@ section.updatedAt {
} }
} }
::ng-deep.modal { .errorTextarea {
.textarea { ::ng-deep .inputContainer {
width: calc(100% - 20px); width: unset;
} }
} }
...@@ -285,7 +285,7 @@ export class StructureDetailsComponent implements OnInit { ...@@ -285,7 +285,7 @@ export class StructureDetailsComponent implements OnInit {
public sendErrorEmail(shouldSend: boolean, content?: string): void { public sendErrorEmail(shouldSend: boolean, content?: string): void {
this.displayModalError(); this.displayModalError();
if (shouldSend && content) { if (shouldSend && content) {
this.structureService.sendMailOnStructureError(this.structure._id, content).subscribe(() => {}); this.structureService.sendMailOnStructureError(this.structure._id, content).subscribe();
} }
} }
......
...@@ -174,21 +174,6 @@ form p.notRequired { ...@@ -174,21 +174,6 @@ form p.notRequired {
} }
} }
/** Textarea **/
// V3REMOVE
textarea {
padding: 13px 8px;
background: $grey-9;
border: 1px solid $grey-5;
border-radius: 4px;
resize: none;
outline: none;
@include font-regular-16;
&:focus {
border: 1px solid $grey-3;
}
}
/** Buttons **/ /** Buttons **/
// V3REMOVE // V3REMOVE
button { button {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment