mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-10 14:30:03 +00:00
24 lines
628 B
TypeScript
24 lines
628 B
TypeScript
import { Injectable } from '@angular/core'
|
|
import { HostAppService, Platform } from 'tabby-core'
|
|
import { SettingsTabProvider } from 'tabby-settings'
|
|
|
|
import { ShellSettingsTabComponent } from './components/shellSettingsTab.component'
|
|
|
|
/** @hidden */
|
|
@Injectable()
|
|
export class ShellSettingsTabProvider extends SettingsTabProvider {
|
|
id = 'terminal-shell'
|
|
icon = 'list-ul'
|
|
title = 'Shell'
|
|
|
|
constructor (private hostApp: HostAppService) {
|
|
super()
|
|
}
|
|
|
|
getComponentType (): any {
|
|
if (this.hostApp.platform === Platform.Windows) {
|
|
return ShellSettingsTabComponent
|
|
}
|
|
}
|
|
}
|