]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/shared/shared-main/angular/login-link.component.ts
Automatic colspan for tables
[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 }