Commit 10a89a2e authored by Marcelo Rivera's avatar Marcelo Rivera

(feat): rename 'groups' to 'communities'

1 merge request!486WIP: (feat): Minds Pro (development branch) - Release 2
Pipeline #75660284 passed with stages
in 30 minutes and 16 seconds
......@@ -54,10 +54,10 @@
>Articles</a>
<a
class="m-proChannelTopbar__navItem"
[routerLink]="linkTo('groups', query)"
[routerLink]="linkTo('communities', query)"
routerLinkActive="active"
i18n
>Groups</a>
>Communities</a>
<a
class="m-proChannelTopbar__navItem"
[routerLink]="['/pro', channel.username, 'donate']"
......
......@@ -70,7 +70,7 @@ export class ProChannelComponent implements OnInit, OnDestroy {
}
shouldShowCategories(type: string) {
const routes = ['images', 'videos', 'articles', 'feed', 'groups'];
const routes = ['images', 'videos', 'articles', 'feed', 'communities'];
this.showCategories = routes.indexOf(type) !== -1;
}
......
......@@ -72,7 +72,7 @@ export class ProChannelListComponent implements OnInit, OnDestroy {
case 'articles':
this.type = 'blogs';
break;
case 'groups':
case 'communities':
this.type = 'groups';
break;
case 'feed':
......
......@@ -34,7 +34,7 @@
class="m-dropdownList__item m-pro-user-menuDropdown__item"
(click)="closeMenu()"
>
<a [routerLink]="linkTo('groups', query)" routerLinkActive="active" i18n>Groups</a>
<a [routerLink]="linkTo('communities', query)" routerLinkActive="active" i18n>Communities</a>
</li>
<li
......
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, OnInit, Input } from "@angular/core";
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, OnInit } from "@angular/core";
import { Session } from "../../../../services/session";
import { ThemeService } from "../../../../common/services/theme.service";
import { ProChannelService } from "../channel.service";
......@@ -28,10 +28,6 @@ export class ProUserMenuComponent implements OnInit {
) {
}
getCurrentUser() {
return this.session.getLoggedInUser();
}
ngOnInit() {
this.session.isLoggedIn(() => this.detectChanges());
}
......
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