Commit 5e66e204 authored by Marcelo Rivera's avatar Marcelo Rivera
Browse files

(fix): remove query param

parent 33efb0e3
Loading
Loading
Loading
Loading
+1 −11
Original line number Diff line number Diff line
@@ -31,7 +31,6 @@ export class ChannelContainerComponent implements OnInit, OnDestroy {
  protected showPro: boolean;

  protected param$: Subscription;
  protected queryParam$: Subscription;

  @ViewChild('channelComponent', { static: false })
  channelComponent: ChannelComponent;
@@ -52,6 +51,7 @@ export class ChannelContainerComponent implements OnInit, OnDestroy {
    this.param$ = this.route.params.subscribe(params => {
      if (params['username']) {
        this.username = params['username'];
        this.showPro = !params['pro'] || params['pro'] !== '0';

        if (
          this.username &&
@@ -61,16 +61,6 @@ export class ChannelContainerComponent implements OnInit, OnDestroy {
        }
      }
    });

    this.queryParam$ = this.route.queryParams.subscribe(params => {
      this.showPro = true;

      if (params['pro']) {
        this.showPro = params['pro'] !== '0';
      }

      this.load();
    });
  }

  canDeactivate(): boolean | Observable<boolean> {
+1 −6
Original line number Diff line number Diff line
@@ -37,12 +37,7 @@
  </div>

  <div class="m-proChannelFooter__items m-proChannelFooter__socialItems">
    <a
      [routerLink]="['/', user.username]"
      [queryParams]="{
        pro: 0
      }"
    >
    <a [routerLink]="['/' + user.username + '/feed', { pro: '0' }]">
      <img
        alt="Minds"
        src="https://cdn-assets.minds.com/front/dist/en/assets/logos/bulb.svg"