Commit 704793e8 authored by Ben's avatar Ben
Browse files

Updated to pull sidebar from v2 feeds endpoint

parent 9a219148
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -88,7 +88,7 @@ describe('BoostConsoleBooster', () => {
    expect(poster).not.toBeNull();
    expect(poster).not.toBeNull();
  });
  });


  it("should not have a poster if the user has posted content", () => {
  it('should not have a poster if the user has posted content', () => {
    comp.feed$ = of([BehaviorSubject.create({id: 1}), BehaviorSubject.create({id: 2})]);
    comp.feed$ = of([BehaviorSubject.create({id: 1}), BehaviorSubject.create({id: 2})]);
    fixture.detectChanges();
    fixture.detectChanges();


+4 −4
Original line number Original line Diff line number Diff line
@@ -27,9 +27,9 @@ export class BoostConsoleBooster {
  feed$: Observable<BehaviorSubject<Object>[]>;
  feed$: Observable<BehaviorSubject<Object>[]>;
  componentRef;
  componentRef;
  componentInstance: PosterComponent;
  componentInstance: PosterComponent;
  inProgress: boolean = true;
  inProgress = true;
  loaded: boolean = false;
  loaded = false;
  noContent: boolean = true;
  noContent = true;


  constructor(
  constructor(
    public client: Client,
    public client: Client,
@@ -70,7 +70,7 @@ export class BoostConsoleBooster {
    this.feedsService
    this.feedsService
      .setEndpoint(
      .setEndpoint(
        this.type === 'content'
        this.type === 'content'
          ? 'api/v1/entities/owner'
          ? `api/v2/feeds/container/${this.minds.user.guid}/channels`
          : `api/v2/feeds/container/${this.minds.user.guid}/activities`
          : `api/v2/feeds/container/${this.minds.user.guid}/activities`
      )
      )
      .setParams({sync: true})
      .setParams({sync: true})