Method
constructor
(
hostApp: HostAppService,
hotkeys: HotkeysService,
private app: AppService,
private translate: TranslateService,
)
Source from the content-addressed store, hash-verified
| 7 | @Injectable() |
| 8 | export class ButtonProvider extends ToolbarButtonProvider { |
| 9 | constructor ( |
| 10 | hostApp: HostAppService, |
| 11 | hotkeys: HotkeysService, |
| 12 | private app: AppService, |
| 13 | private translate: TranslateService, |
| 14 | ) { |
| 15 | super() |
| 16 | hostApp.settingsUIRequest$.subscribe(() => this.open()) |
| 17 | |
| 18 | hotkeys.hotkey$.subscribe(async (hotkey) => { |
| 19 | if (hotkey === 'settings') { |
| 20 | this.open() |
| 21 | } |
| 22 | }) |
| 23 | } |
| 24 | |
| 25 | provide (): ToolbarButton[] { |
| 26 | return [{ |
Callers
nothing calls this directly
Tested by
no test coverage detected