Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

Commit

Permalink
fix(service): fixed link url for wi ser
Browse files Browse the repository at this point in the history
  • Loading branch information
sanbornsen authored and sudsen committed Aug 24, 2018
1 parent 02578c8 commit ef08e11
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/app/effects/work-item-link.effects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export class WorkItemLinkEffects {
let createLinkPayload = {'data': p.payload};
return this.workItemService
.createLink(
p.space.links.self.split('space')[0],
p.space.links.self.split('space')[0] + 'workitemlinks',
createLinkPayload
)
.map(([link, includes]) => {
Expand Down
8 changes: 4 additions & 4 deletions src/app/effects/work-item.effects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,13 @@ export class WorkItemEffects {
// Add item success notification
const parent = state.workItems.entities[parentId];
if (!parent.childrenLoaded && parent.hasChildren) {
return Observable.of(new WorkItemActions.GetChildren(parent));
return new WorkItemActions.GetChildren(parent);
} else {
if (payload.openDetailPage) {
this.router.navigateByUrl(document.location.pathname + '/detail/' + wItem.number,
{relativeTo: this.route});
}
return Observable.of(new WorkItemActions.AddSuccess(wItem));
return new WorkItemActions.AddSuccess(wItem);
}
});
} else {
Expand All @@ -117,9 +117,9 @@ export class WorkItemEffects {
if (payload.openDetailPage) {
this.router.navigateByUrl(document.location.pathname + '/detail/' + wItem.number,
{relativeTo: this.route});
}
return Observable.of(new WorkItemActions.AddSuccess(wItem));
}
return Observable.of(new WorkItemActions.AddSuccess(wItem));
}
})
.catch(() => {
try {
Expand Down

0 comments on commit ef08e11

Please sign in to comment.