Skip to content

Commit 5daa544

Browse files
committed
fix: TT-23 rename function
1 parent f20a6d9 commit 5daa544

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/app/modules/shared/components/details-fields/details-fields.component.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ describe('DetailsFieldsComponent', () => {
169169
});
170170
});
171171

172-
it('on cleanFormWithSkipProject the project_id and project_name should be kept', () => {
172+
it('on cleanFieldsForm the project_id and project_name should be kept', () => {
173173
const entryFormValueExpected = {
174174
...formValues,
175175
activity_id: '',
@@ -183,7 +183,7 @@ describe('DetailsFieldsComponent', () => {
183183
};
184184

185185
component.entryForm.setValue(formValues);
186-
component.cleanFormWithSkipProject();
186+
component.cleanFieldsForm();
187187

188188
expect(component.entryForm.value).toEqual(entryFormValueExpected);
189189
});

src/app/modules/shared/components/details-fields/details-fields.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export class DetailsFieldsComponent implements OnChanges, OnInit {
172172
});
173173
}
174174

175-
cleanFormWithSkipProject(): void {
175+
cleanFieldsForm(): void {
176176
this.cleanForm(true);
177177
}
178178

src/app/modules/time-entries/pages/time-entries.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
<div class="modal-content" cdkDrag (cdkDragEnded)="resetDraggablePosition($event)">
6565
<div class="modal-header" cdkDragHandle>
6666
<h5 class="modal-title">{{ entryId ? 'Edit Entry' : 'New Entry' }}</h5>
67-
<button type="button" class="btn" (click)="detailsFields.cleanFormWithSkipProject()">
67+
<button type="button" class="btn" (click)="detailsFields.cleanFieldsForm()">
6868
<i class="fa fa-undo" aria-hidden="true"></i>
6969
</button>
7070
</div>

0 commit comments

Comments
 (0)