]>
Commit | Line | Data |
---|---|---|
98bd5e22 C |
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 | } |