File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed
time-clock/components/entry-fields Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -6,12 +6,13 @@ export interface Entry {
66 activity : string ;
77 technologies : string [ ] ;
88 comments ?: string ;
9- ticket ?: string ;
9+ uri ?: string ;
1010}
1111
1212export interface NewEntry {
1313 project_id : string ;
1414 start_date ?: string ;
1515 description ?: string ;
1616 technologies ?: string [ ] ;
17+ uri ?: string ;
1718}
Original file line number Diff line number Diff line change 33 < div class ="input-group-prepend ">
44 < span class ="input-group-text span-width " id ="inputGroup-sizing-sm "> Activity</ span >
55 </ div >
6- < select id ="activitiesSelect " class ="form-control ">
6+ < select id ="activitiesSelect " (blur) =" onSubmit() " class ="form-control ">
77 < option *ngFor ="let activity of activities "> {{ activity.name }}</ option >
88 </ select >
99 </ div >
1010 < div class ="input-group input-group-sm mb-3 ">
1111 < div class ="input-group-prepend ">
12- < span class ="input-group-text span-width " id ="inputGroup-sizing-sm "> Jira Ticket</ span >
12+ < span class ="input-group-text span-width " id ="inputGroup-sizing-sm "> Ticket URI </ span >
1313 </ div >
14- < input type ="text " class ="form-control " aria-label ="Small " aria-describedby ="inputGroup-sizing-sm " />
14+ < input (blur) =" onSubmit() " type ="text " id =" uri " formControlName =" uri " class ="form-control " aria-label ="Small " aria-describedby ="inputGroup-sizing-sm " />
1515 </ div >
1616
1717 < div class ="input-group input-group-sm ">
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ export class EntryFieldsComponent implements OnInit {
4040 } ) ;
4141 this . entryForm = this . formBuilder . group ( {
4242 description : '' ,
43+ uri : '' ,
4344 } ) ;
4445 }
4546
@@ -63,6 +64,7 @@ export class EntryFieldsComponent implements OnInit {
6364 this . newData = {
6465 id : this . activeEntry . id ,
6566 project_id : this . activeEntry . project_id ,
67+ uri : this . activeEntry . uri ,
6668 } ;
6769 } ) ;
6870 }
@@ -71,6 +73,7 @@ export class EntryFieldsComponent implements OnInit {
7173 if ( entryData ) {
7274 this . entryForm . patchValue ( {
7375 description : entryData . description ,
76+ uri : entryData . uri ,
7477 } ) ;
7578 if ( entryData . technologies ) {
7679 this . selectedTechnology = entryData . technologies ;
You can’t perform that action at this time.
0 commit comments