Skip to content

Commit 2f62ab4

Browse files
authored
refactor: TTL-725 change the confirmation message of customer module (#967)
* refactor: TTL-725 change the confirmation message of customer module * test: TTL-725 change the confirmation message of customer module test * test: TTL-725 change the confirmation message of customer module test
1 parent 98d7c42 commit 2f62ab4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/app/modules/customer-management/components/customer-info/components/customer-list/customer-list.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ describe('CustomerTableListComponent', () => {
8484

8585
it('Onclick Edit, if there are changes, the modal must be presented ', () => {
8686
component.hasChange = true;
87-
const expectMessage = 'You have changes in a client, do you want to discard them?';
87+
const expectMessage = 'You have unsaved changes, do you want to discard them?';
8888

8989
component.editCustomer('1');
9090

src/app/modules/customer-management/components/customer-info/components/customer-list/customer-list.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export class CustomerListComponent implements OnInit, OnDestroy, AfterViewInit {
123123
editCustomer(customerId: string) {
124124
this.idToEdit = customerId;
125125
if (this.hasChange) {
126-
this.message = 'You have changes in a client, do you want to discard them?';
126+
this.message = 'You have unsaved changes, do you want to discard them?';
127127
this.showModal = true;
128128
} else {
129129
this.showCustomerForm = true;

0 commit comments

Comments
 (0)