Skip to content
Merged
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
Next Next commit
refactor: TTA-189 dropped another unused function
  • Loading branch information
mmaquina committed Nov 18, 2022
commit 1a4daa95f467803dbdd452cb7515268ee789ce17
Original file line number Diff line number Diff line change
Expand Up @@ -206,26 +206,4 @@ export class CustomerListComponent implements OnInit, OnDestroy, AfterViewInit {
element.scrollIntoView();
}


waitForForm() {
const selector = 'customerFormDiv';
return new Promise(resolve => {
if (document.querySelector(selector)) {
return resolve(document.querySelector(selector));
}

const observer = new MutationObserver(mutations => {
if (document.querySelector(selector)) {
resolve(document.querySelector(selector));
observer.disconnect();
}
});

observer.observe(document.body, {
childList: true,
subtree: true
});
});
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,4 @@ describe('CustomerComponent', () => {

expect(component.hasChangeComponent).toBe(true);
});

});
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class CustomerComponent {
}

scrollToCustomerForm(): void {
const element = document.getElementById("bottom");
const element = document.getElementById('bottom');
element.scrollIntoView();
}
}