Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
fix(summary): Apply my projects filters.
Browse files Browse the repository at this point in the history
Closes #866
  • Loading branch information
mjschranz committed Jun 3, 2015
1 parent c09ee5b commit 9085c14
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/scripts/search/search.services.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module ngApp.search.services {

import ILocationService = ngApp.components.location.services.ILocationService;
import IUserService = ngApp.components.user.services.IUserService;

export interface ITab {
active: boolean;
Expand Down Expand Up @@ -67,10 +68,12 @@ module ngApp.search.services {
class SearchService implements ISearchService {

/* @ngInject */
constructor(private Restangular: restangular.IService, private LocationService: ILocationService) {
constructor(private Restangular: restangular.IService, private LocationService: ILocationService,
private UserService: IUserService) {
}

getSummary(filters: Object = this.LocationService.filters()) {
filters = this.UserService.addMyProjectsFilter(filters, "participants.project.project_id");
return this.Restangular.all("ui/search/summary")
.post({ filters: filters }, undefined, { 'Content-Type': 'application/json' })
.then((response) => {
Expand Down

0 comments on commit 9085c14

Please sign in to comment.