Hello, I have this following modal, whenever I click on the "Rejected sale" button it opens, but I wanted to close this same modal every time it clicked on the "Send" button, which in the case and my submit, as I do this?
<div class="chat-form">
<button data-toggle="modal" href="#redModal" class="btn btn-block red">Recusou venda</button>
</div>
<!-- Modal info adicionais -->
<div id="redModal" class="modal fade" role="dialog">
<div class="modal-dialog modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title"> <i class="fa fa-checker"></i> Recusou</h4>
</div>
<div class="modal-body text-center">
<h3 class="blue-hoki">Recusou a venda</h3>
<br>
<form [formGroup]="rForm" (ngSubmit)="recusouVenda(rForm.value)">
<div class="row form-modal">
<div class="form-group col-md-12">
<label>Comentario:
<div class="input-group">
<textarea [value]="valorInput" cols="30" rows="10" class="form-control" type="text" formControlName="comentario"></textarea>
</div>
</label>
</div>
<br><br><br>
<button type="submit" class="btn btn red">Enviar</button>
</div>
</form>
</div>
</div>
</div>
</div>