diff options
Diffstat (limited to 'client/src/app/menu/menu.component.ts')
-rw-r--r-- | client/src/app/menu/menu.component.ts | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/client/src/app/menu/menu.component.ts b/client/src/app/menu/menu.component.ts index fc6d74cff..21354e52d 100644 --- a/client/src/app/menu/menu.component.ts +++ b/client/src/app/menu/menu.component.ts | |||
@@ -1,7 +1,6 @@ | |||
1 | import { HotkeysService } from 'angular2-hotkeys' | 1 | import { HotkeysService } from 'angular2-hotkeys' |
2 | import * as debug from 'debug' | 2 | import * as debug from 'debug' |
3 | import { switchMap } from 'rxjs/operators' | 3 | import { switchMap } from 'rxjs/operators' |
4 | import { environment } from 'src/environments/environment' | ||
5 | import { ViewportScroller } from '@angular/common' | 4 | import { ViewportScroller } from '@angular/common' |
6 | import { Component, OnInit, ViewChild } from '@angular/core' | 5 | import { Component, OnInit, ViewChild } from '@angular/core' |
7 | import { Router } from '@angular/router' | 6 | import { Router } from '@angular/router' |
@@ -22,7 +21,6 @@ import { LanguageChooserComponent } from '@app/menu/language-chooser.component' | |||
22 | import { QuickSettingsModalComponent } from '@app/modal/quick-settings-modal.component' | 21 | import { QuickSettingsModalComponent } from '@app/modal/quick-settings-modal.component' |
23 | import { PeertubeModalService } from '@app/shared/shared-main/peertube-modal/peertube-modal.service' | 22 | import { PeertubeModalService } from '@app/shared/shared-main/peertube-modal/peertube-modal.service' |
24 | import { NgbDropdown } from '@ng-bootstrap/ng-bootstrap' | 23 | import { NgbDropdown } from '@ng-bootstrap/ng-bootstrap' |
25 | import { PluginsManager } from '@root-helpers/plugins-manager' | ||
26 | import { HTMLServerConfig, ServerConfig, UserRight, VideoConstant } from '@shared/models' | 24 | import { HTMLServerConfig, ServerConfig, UserRight, VideoConstant } from '@shared/models' |
27 | 25 | ||
28 | const debugLogger = debug('peertube:menu:MenuComponent') | 26 | const debugLogger = debug('peertube:menu:MenuComponent') |
@@ -135,10 +133,6 @@ export class MenuComponent implements OnInit { | |||
135 | .subscribe(() => this.openQuickSettings()) | 133 | .subscribe(() => this.openQuickSettings()) |
136 | } | 134 | } |
137 | 135 | ||
138 | getExternalLoginHref () { | ||
139 | return PluginsManager.getDefaultLoginHref(environment.apiUrl, this.serverConfig) | ||
140 | } | ||
141 | |||
142 | isRegistrationAllowed () { | 136 | isRegistrationAllowed () { |
143 | if (!this.serverConfig) return false | 137 | if (!this.serverConfig) return false |
144 | 138 | ||