diff options
Diffstat (limited to 'client/src/app/+admin/follows/follows.component.ts')
-rw-r--r-- | client/src/app/+admin/follows/follows.component.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/src/app/+admin/follows/follows.component.ts b/client/src/app/+admin/follows/follows.component.ts index f7af9826c..b6f7715b3 100644 --- a/client/src/app/+admin/follows/follows.component.ts +++ b/client/src/app/+admin/follows/follows.component.ts | |||
@@ -1,14 +1,14 @@ | |||
1 | import { AfterViewInit, Component, OnInit, ViewChild } from '@angular/core' | 1 | import { AfterViewInit, Component, OnInit, ViewChild } from '@angular/core' |
2 | import { NavigationEnd, Router } from '@angular/router' | 2 | import { NavigationEnd, Router } from '@angular/router' |
3 | import { TabsetComponent } from 'ngx-bootstrap/tabs' | ||
4 | import { I18n } from '@ngx-translate/i18n-polyfill' | 3 | import { I18n } from '@ngx-translate/i18n-polyfill' |
4 | import { NgbTabset } from '@ng-bootstrap/ng-bootstrap' | ||
5 | 5 | ||
6 | @Component({ | 6 | @Component({ |
7 | templateUrl: './follows.component.html', | 7 | templateUrl: './follows.component.html', |
8 | styleUrls: [ './follows.component.scss' ] | 8 | styleUrls: [ './follows.component.scss' ] |
9 | }) | 9 | }) |
10 | export class FollowsComponent implements OnInit, AfterViewInit { | 10 | export class FollowsComponent implements OnInit, AfterViewInit { |
11 | @ViewChild('followsMenuTabs') followsMenuTabs: TabsetComponent | 11 | @ViewChild('followsMenuTabs') followsMenuTabs: NgbTabset |
12 | 12 | ||
13 | links: { path: string, title: string }[] = [] | 13 | links: { path: string, title: string }[] = [] |
14 | 14 | ||
@@ -53,8 +53,8 @@ export class FollowsComponent implements OnInit, AfterViewInit { | |||
53 | for (let i = 0; i < this.links.length; i++) { | 53 | for (let i = 0; i < this.links.length; i++) { |
54 | const path = this.links[i].path | 54 | const path = this.links[i].path |
55 | 55 | ||
56 | if (url.endsWith(path) === true && this.followsMenuTabs.tabs[i]) { | 56 | if (url.endsWith(path) === true) { |
57 | this.followsMenuTabs.tabs[i].active = true | 57 | this.followsMenuTabs.select(path) |
58 | return | 58 | return |
59 | } | 59 | } |
60 | } | 60 | } |