Skip to content

Commit b47c78b

Browse files
committed
fix: #207 hide technology list
1 parent 0dc8687 commit b47c78b

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

src/app/modules/time-clock/components/entry-fields/entry-fields.component.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
</div>
2121
<input
2222
(keypress)="getTechnologies($event.target.value)"
23+
id="technology"
24+
formControlName="technology"
2325
type="text"
2426
class="form-control"
2527
aria-label="Small"

src/app/modules/time-clock/components/entry-fields/entry-fields.component.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ describe('EntryFieldsComponent', () => {
5656
project_id: 'project-id-15',
5757
description: 'description for active entry',
5858
uri: 'abc',
59+
technology: '',
5960
};
6061

6162
beforeEach(async(() => {

src/app/modules/time-clock/components/entry-fields/entry-fields.component.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export class EntryFieldsComponent implements OnInit {
4242
this.entryForm = this.formBuilder.group({
4343
description: '',
4444
uri: '',
45+
technology: '',
4546
});
4647
}
4748

@@ -102,6 +103,8 @@ export class EntryFieldsComponent implements OnInit {
102103
this.store.dispatch(
103104
new entryActions.UpdateActiveEntry({ ...this.newData, technologies: this.selectedTechnology })
104105
);
106+
this.showlist = false;
107+
this.entryForm.get('technology').reset();
105108
}
106109
}
107110

0 commit comments

Comments
 (0)