aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/app.component.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-11-04 16:23:18 +0100
committerChocobozzz <florian.bigard@gmail.com>2016-11-04 16:23:18 +0100
commit3154f38219ea6eb55532f38fee43d46821a020ee (patch)
treebaa5586d83de77387b4559fe6e98e3a95334cbc0 /client/src/app/app.component.ts
parentd1992b93f0f4a4408f803d6320cd26a713e22d5b (diff)
downloadPeerTube-3154f38219ea6eb55532f38fee43d46821a020ee.tar.gz
PeerTube-3154f38219ea6eb55532f38fee43d46821a020ee.tar.zst
PeerTube-3154f38219ea6eb55532f38fee43d46821a020ee.zip
Client: allow to copy magnet uri
Diffstat (limited to 'client/src/app/app.component.ts')
-rw-r--r--client/src/app/app.component.ts13
1 files changed, 8 insertions, 5 deletions
diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts
index d6b83c684..01d3f5deb 100644
--- a/client/src/app/app.component.ts
+++ b/client/src/app/app.component.ts
@@ -1,14 +1,17 @@
1import { Component } from '@angular/core'; 1import { Component, ViewContainerRef } from '@angular/core';
2import { Router } from '@angular/router'; 2import { Router } from '@angular/router';
3 3
4@Component({ 4@Component({
5 selector: 'my-app', 5 selector: 'my-app',
6 templateUrl: './app.component.html', 6 templateUrl: './app.component.html',
7 styleUrls: [ './app.component.scss' ] 7 styleUrls: [ './app.component.scss' ]
8}) 8})
9 9
10export class AppComponent { 10export class AppComponent {
11 constructor(private router: Router) {} 11 constructor(
12 private router: Router,
13 viewContainerRef: ViewContainerRef
14 ) {}
12 15
13 isInAdmin() { 16 isInAdmin() {
14 return this.router.url.indexOf('/admin/') !== -1; 17 return this.router.url.indexOf('/admin/') !== -1;