]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+admin/follows/follows.component.ts
update ng-bootstrap
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / follows / follows.component.ts
index 97422a41bbda5d02463fbd9df309384e3f6f7b97..1ec7e598ba652bdaac3510c29bc5b3306b433e77 100644 (file)
@@ -1,43 +1,8 @@
-import { AfterViewInit, Component, ViewChild } from '@angular/core'
-import { TabsetComponent } from 'ngx-bootstrap/tabs'
+import { Component } from '@angular/core'
 
 @Component({
   templateUrl: './follows.component.html',
   styleUrls: [ './follows.component.scss' ]
 })
-export class FollowsComponent implements AfterViewInit {
-  @ViewChild('followsMenuTabs') followsMenuTabs: TabsetComponent
-
-  links = [
-    {
-      path: 'following-list',
-      title: 'Following'
-    },
-    {
-      path: 'following-add',
-      title: 'Follow'
-    },
-    {
-      path: 'followers-list',
-      title: 'Followers'
-    }
-  ]
-
-  ngAfterViewInit () {
-    // Avoid issue with change detector
-    setTimeout(() => this.updateActiveTab())
-  }
-
-  private updateActiveTab () {
-    const url = window.location.pathname
-
-    for (let i = 0; i < this.links.length; i++) {
-      const path = this.links[i].path
-
-      if (url.endsWith(path) === true) {
-        this.followsMenuTabs.tabs[i].active = true
-        return
-      }
-    }
-  }
+export class FollowsComponent {
 }