]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/shared/shared-main/angular/login-link.component.ts
7e3a773c2c56b677484516aec597d42788e20dc8
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared-main / angular / login-link.component.ts
1 import { environment } from 'src/environments/environment'
2 import { Component, Input } from '@angular/core'
3 import { ServerService } from '@app/core'
4 import { PluginsManager } from '@root-helpers/plugins-manager'
5
6 @Component({
7 selector: 'my-login-link',
8 templateUrl: './login-link.component.html'
9 })
10 export class LoginLinkComponent {
11 @Input() label = $localize`Login`
12
13 @Input() className?: string
14
15 constructor (private server: ServerService) {
16
17 }
18
19 getExternalLoginHref () {
20 return PluginsManager.getDefaultLoginHref(environment.apiUrl, this.server.getHTMLConfig())
21 }
22 }