Skip to content

Conversation

@macrisguncay
Copy link
Contributor

this ticket was solved with ngrx

{
id: '1',
name: 'Training',
description: 'It is goof for learning',
Copy link
Contributor

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',
Copy link
Contributor

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);
Copy link
Contributor

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',
Copy link
Contributor

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 :)

Comment on lines 3 to 6
created_at?: string;
updated_at?: string;
created_by?: string;
updated_by?: string;
Copy link
Contributor

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.

@macrisguncay macrisguncay force-pushed the 44-Save-activities-using-API branch from a574c4c to a0441ff Compare April 6, 2020 17:09
const createActivitySuccess = new CreateActivitySuccess({
id: '1',
name: 'Training',
description: 'It is goof for learning',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo

@enriquezrene enriquezrene merged commit 71b59cf into master Apr 6, 2020
@enriquezrene enriquezrene deleted the 44-Save-activities-using-API branch April 6, 2020 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants