Files
threshold-ui/ui/desktop/app/components/session/tabs/index.hbs
T
hashicc 72fa6d86c4 Update copyright headers (#3161)
* chore: 🤖 remove hashi copyright .github headers and update config

* chore: 🤖 remove remaining hashicorp copyright headers

* Add missing copyright headers
2026-02-03 12:08:35 -05:00

39 lines
1.0 KiB
Handlebars

{{!
Copyright IBM Corp. 2021, 2026
SPDX-License-Identifier: BUSL-1.1
}}
{{#if @model.target.isRDP}}
{{! RDP: Show content directly without tabs }}
{{#if (and @model.proxy_address @model.proxy_port)}}
<Session::ProxyUrl
@proxyAddress={{@model.proxy_address}}
@proxyPort={{@model.proxy_port}}
@targetType={{@model.target.type}}
/>
{{/if}}
<Session::Details @model={{@model}} />
{{else}}
{{! Non-RDP: Show tabbed interface }}
<Hds::Tabs as |T|>
<T.Tab>{{t 'titles.details'}}</T.Tab>
<T.Tab @icon='terminal' {{on 'click' this.openTerminal}}>
{{t 'resources.session.shell'}}
</T.Tab>
<T.Panel>
{{#if (and @model.proxy_address @model.proxy_port)}}
<Session::ProxyUrl
@proxyAddress={{@model.proxy_address}}
@proxyPort={{@model.proxy_port}}
@targetType={{@model.target.type}}
/>
{{/if}}
<Session::Details @model={{@model}} />
</T.Panel>
<T.Panel>
<div id='terminal-container'></div>
</T.Panel>
</Hds::Tabs>
{{/if}}