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'
7 selector: 'my-login-link',
8 templateUrl: './login-link.component.html'
10 export class LoginLinkComponent {
11 @Input() label = $localize`Login`
13 @Input() className?: string
15 constructor (private server: ServerService) {
19 getExternalLoginHref () {
20 return PluginsManager.getDefaultLoginHref(environment.apiUrl, this.server.getHTMLConfig())