diff options
Diffstat (limited to 'client/src/app/shared/shared-main/angular/login-link.component.ts')
-rw-r--r-- | client/src/app/shared/shared-main/angular/login-link.component.ts | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/client/src/app/shared/shared-main/angular/login-link.component.ts b/client/src/app/shared/shared-main/angular/login-link.component.ts new file mode 100644 index 000000000..7e3a773c2 --- /dev/null +++ b/client/src/app/shared/shared-main/angular/login-link.component.ts | |||
@@ -0,0 +1,22 @@ | |||
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 | } | ||