mirror of
https://github.com/Eugeny/tabby.git
synced 2025-09-08 17:41:50 +00:00
typing fixes
This commit is contained in:
@@ -71,7 +71,7 @@ title-bar(
|
||||
ngbDropdown
|
||||
)
|
||||
button.btn.btn-secondary.btn-tab-bar(
|
||||
[title]='button.title',
|
||||
[title]='button.label',
|
||||
(click)='button.run && button.run()',
|
||||
[fastHtmlBind]='button.icon',
|
||||
ngbDropdownToggle,
|
||||
|
@@ -79,8 +79,8 @@ export class AppRootComponent {
|
||||
|
||||
constructor (
|
||||
private hotkeys: HotkeysService,
|
||||
private updater: UpdaterService,
|
||||
private commands: CommandService,
|
||||
public updater: UpdaterService,
|
||||
public hostWindow: HostWindowService,
|
||||
public hostApp: HostAppService,
|
||||
public config: ConfigService,
|
||||
|
@@ -6,7 +6,7 @@ import { PlatformService } from '../api/platform'
|
||||
selector: '[fastHtmlBind]',
|
||||
})
|
||||
export class FastHtmlBindDirective implements OnChanges {
|
||||
@Input() fastHtmlBind: string
|
||||
@Input() fastHtmlBind?: string
|
||||
|
||||
constructor (
|
||||
private el: ElementRef,
|
||||
@@ -14,7 +14,7 @@ export class FastHtmlBindDirective implements OnChanges {
|
||||
) { }
|
||||
|
||||
ngOnChanges (): void {
|
||||
this.el.nativeElement.innerHTML = this.fastHtmlBind || ''
|
||||
this.el.nativeElement.innerHTML = this.fastHtmlBind ?? ''
|
||||
for (const link of this.el.nativeElement.querySelectorAll('a')) {
|
||||
link.addEventListener('click', event => {
|
||||
event.preventDefault()
|
||||
|
Reference in New Issue
Block a user