Commit 2931f0b8 authored by Juan Manuel Solaro's avatar Juan Manuel Solaro

(fix) view on minds should correctly take to channel

1 merge request!459WIP: (feat): Minds Pro
Pipeline #73583350 passed with stages
in 30 minutes and 43 seconds
......@@ -31,7 +31,7 @@
<a [routerLink]="['/pro', channel.username, 'signup']" routerLinkActive="active">Signup / Login</a>
</ng-template>
<m-pro-user-menu></m-pro-user-menu>
<m-pro-user-menu [channelName]="channel.username"></m-pro-user-menu>
</div>
<div class="m-proChannel__body">
......
......@@ -6,7 +6,7 @@
class="m-dropdownList__item m-pro-user-menuDropdown__Item"
(click)="closeMenu()"
>
<a [routerLink]="['/', getCurrentUser()?.username]">
<a [routerLink]="['/', channelName]">
<i class="material-icons">remove_red_eye</i>
<span i18n>View on Minds</span>
</a>
......
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, OnInit } from "@angular/core";
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, OnInit, Input } from "@angular/core";
import { Session } from "../../../../services/session";
import { ThemeService } from "../../../../common/services/theme.service";
......@@ -9,6 +9,8 @@ import { ThemeService } from "../../../../common/services/theme.service";
})
export class ProUserMenuComponent implements OnInit {
isOpen: boolean = false;
@Input() channelName: string;
constructor(protected session: Session, protected cd: ChangeDetectorRef, private themeService: ThemeService) {
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment