Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: TT-26 close modal
  • Loading branch information
scastillo-jp committed Mar 16, 2021
commit e4999560e857ad07342fe7b1cf5fac042137c28f
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
data-target="#editModal"
class="btn btn-sm btn-primary"
>
<i class="fa fa-pencil fa-xs">{{haveChanges}}</i>
<i class="fa fa-pencil fa-xs">{{ haveChanges}}</i>
</button>

<app-dialog
Expand All @@ -38,7 +38,7 @@
aria-hidden="true"
[title]="'Edit Customer'"
[body]="message"
(closeModalEvent)="testMessage(customer.id)"
(closeModalEvent)="discardChanges(customer.id)"
>
</app-dialog>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export class CustomerListComponent implements OnInit, OnDestroy, AfterViewInit {
changeCustomerSubscription: Subscription;
showModal = false;
idToDelete: string;
idToEdit: string;
message: string;
isLoading$: Observable<boolean>;

Expand Down Expand Up @@ -90,10 +91,9 @@ export class CustomerListComponent implements OnInit, OnDestroy, AfterViewInit {
}
}

testMessage(customerId: string) {
discardChanges(customerId: string) {
this.showCustomerForm = true;
this.showModal = false;
this.haveChanges = null;
this.changeValueShowCustomerForm.emit(this.showCustomerForm);
this.resetProjectFieldsToEdit();
this.store.dispatch(new SetCustomerToEdit(customerId));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ export class ManagementCustomerProjectsComponent implements OnInit {
setTimeout(() => {
this.haveChanges = $haveChanges;
this.sendChanges.emit($haveChanges);
console.log('manager-custome-project detect changes : ', this.haveChanges);
}, 1);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export class CustomerComponent {

getChangesInputs(event) {
this.haveChanges = event;
console.log('customer.component sending changes', this.haveChanges);
}

}