-
Notifications
You must be signed in to change notification settings - Fork 1
#44 save activities using API #77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| { | ||
| id: '1', | ||
| name: 'Training', | ||
| description: 'It is goof for learning', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
goof or good?
| const activity: Activity = { | ||
| id: '1', | ||
| name: 'Training', | ||
| description: 'It is goof for learning', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
goof or good?
| service.baseUrl = 'activities'; | ||
|
|
||
| service.createActivity(activity).subscribe((response) => { | ||
| console.log('respun', response); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's remove this console.log
| LOAD_ACTIVITIES_FAIL = '[ActivityManagement] Load Activities Fail', | ||
| CREATE_ACTIVITY = '[ActivityManagement] Create Activity', | ||
| CREATE_ACTIVITY_SUCCESS = '[ActivityManagement] Create Activity Successs', | ||
| CREATE_ACTIVITY_FAIL = '[ActivityManagement] Create Activity Fail', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 for this change, It looks way better in this way :)
| created_at?: string; | ||
| updated_at?: string; | ||
| created_by?: string; | ||
| updated_by?: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are not going to use these fields in the UI so I think we should not include them.
a574c4c to
a0441ff
Compare
| const createActivitySuccess = new CreateActivitySuccess({ | ||
| id: '1', | ||
| name: 'Training', | ||
| description: 'It is goof for learning', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo
this ticket was solved with ngrx