From 43a3d281fe562d5fe24feb53451b58630be3a288 Mon Sep 17 00:00:00 2001 From: aschaap <8865084+aschaap@users.noreply.github.com> Date: Tue, 6 Apr 2021 02:57:30 -0400 Subject: Minimal PeertubeModalService to open settings from "can be redefined..." (#3923) * Minimal PeertubeModalService to open settings from "can be redefined..." * Linter changes * Removed unused parameter, made Subject type reflect this, and formatting --- client/src/app/menu/menu.component.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'client/src/app/menu') diff --git a/client/src/app/menu/menu.component.ts b/client/src/app/menu/menu.component.ts index ed20d9c01..9b6b7cda5 100644 --- a/client/src/app/menu/menu.component.ts +++ b/client/src/app/menu/menu.component.ts @@ -10,6 +10,7 @@ import { LanguageChooserComponent } from '@app/menu/language-chooser.component' import { QuickSettingsModalComponent } from '@app/modal/quick-settings-modal.component' import { ServerConfig, UserRight, VideoConstant } from '@shared/models' import { NgbDropdown, NgbDropdownConfig } from '@ng-bootstrap/ng-bootstrap' +import { PeertubeModalService } from '@app/shared/shared-main/peertube-modal/peertube-modal.service' const logger = debug('peertube:menu:MenuComponent') @@ -54,6 +55,7 @@ export class MenuComponent implements OnInit { private hotkeysService: HotkeysService, private screenService: ScreenService, private menuService: MenuService, + private modalService: PeertubeModalService, private dropdownConfig: NgbDropdownConfig, private router: Router ) { @@ -130,6 +132,9 @@ export class MenuComponent implements OnInit { this.authService.userInformationLoaded .subscribe(() => this.buildUserLanguages()) }) + + this.modalService.openQuickSettingsSubject + .subscribe(() => this.openQuickSettings()) } isRegistrationAllowed () { -- cgit v1.2.3