aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/menu/menu.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/menu/menu.component.ts')
-rw-r--r--client/src/app/menu/menu.component.ts6
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 @@
1import { HotkeysService } from 'angular2-hotkeys' 1import { HotkeysService } from 'angular2-hotkeys'
2import * as debug from 'debug' 2import * as debug from 'debug'
3import { switchMap } from 'rxjs/operators' 3import { switchMap } from 'rxjs/operators'
4import { environment } from 'src/environments/environment'
5import { ViewportScroller } from '@angular/common' 4import { ViewportScroller } from '@angular/common'
6import { Component, OnInit, ViewChild } from '@angular/core' 5import { Component, OnInit, ViewChild } from '@angular/core'
7import { Router } from '@angular/router' 6import { Router } from '@angular/router'
@@ -22,7 +21,6 @@ import { LanguageChooserComponent } from '@app/menu/language-chooser.component'
22import { QuickSettingsModalComponent } from '@app/modal/quick-settings-modal.component' 21import { QuickSettingsModalComponent } from '@app/modal/quick-settings-modal.component'
23import { PeertubeModalService } from '@app/shared/shared-main/peertube-modal/peertube-modal.service' 22import { PeertubeModalService } from '@app/shared/shared-main/peertube-modal/peertube-modal.service'
24import { NgbDropdown } from '@ng-bootstrap/ng-bootstrap' 23import { NgbDropdown } from '@ng-bootstrap/ng-bootstrap'
25import { PluginsManager } from '@root-helpers/plugins-manager'
26import { HTMLServerConfig, ServerConfig, UserRight, VideoConstant } from '@shared/models' 24import { HTMLServerConfig, ServerConfig, UserRight, VideoConstant } from '@shared/models'
27 25
28const debugLogger = debug('peertube:menu:MenuComponent') 26const 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