diff --git a/ui/desktop/app/components/session/proxy-url/index.js b/ui/desktop/app/components/session/proxy-url/index.js
index d62a20f3e..5cd061246 100644
--- a/ui/desktop/app/components/session/proxy-url/index.js
+++ b/ui/desktop/app/components/session/proxy-url/index.js
@@ -7,15 +7,13 @@ import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';
import { action } from '@ember/object';
import { inject as service } from '@ember/service';
-import { TYPE_TARGET_SSH } from 'api/models/target';
export default class SessionProxyUrlComponent extends Component {
@service intl;
- @tracked selectedValue =
- this.args.targetType === TYPE_TARGET_SSH
- ? this.intl.t('resources.session.proxy-url.ssh')
- : this.intl.t('resources.session.proxy-url.address-port');
+ @tracked selectedValue = this.args.isSSHTarget
+ ? this.intl.t('resources.session.proxy-url.ssh')
+ : this.intl.t('resources.session.proxy-url.address-port');
get isAddressAndPort() {
return (
diff --git a/ui/desktop/app/templates/scopes/scope/projects/sessions/session.hbs b/ui/desktop/app/templates/scopes/scope/projects/sessions/session.hbs
index 20955bfad..17cee4207 100644
--- a/ui/desktop/app/templates/scopes/scope/projects/sessions/session.hbs
+++ b/ui/desktop/app/templates/scopes/scope/projects/sessions/session.hbs
@@ -28,7 +28,7 @@
{{/if}}
diff --git a/ui/desktop/tests/integration/components/proxy-url-test.js b/ui/desktop/tests/integration/components/proxy-url-test.js
index 289def2cc..08bcc7987 100644
--- a/ui/desktop/tests/integration/components/proxy-url-test.js
+++ b/ui/desktop/tests/integration/components/proxy-url-test.js
@@ -8,7 +8,6 @@ import { setupRenderingTest } from 'desktop/tests/helpers';
import { render, click } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
import { setupIntl } from 'ember-intl/test-support';
-import { TYPE_TARGET_TCP, TYPE_TARGET_SSH } from 'api/models/target';
module('Integration | Component | session/proxy-url', function (hooks) {
setupRenderingTest(hooks);
@@ -18,14 +17,13 @@ module('Integration | Component | session/proxy-url', function (hooks) {
assert.expect(2);
this.set('proxyAddress', 'http://localhost');
this.set('proxyPort', '1234');
- this.set('targetType', TYPE_TARGET_TCP);
await render(
hbs`
`
);
@@ -38,14 +36,13 @@ module('Integration | Component | session/proxy-url', function (hooks) {
assert.expect(2);
this.set('proxyAddress', 'http://localhost');
this.set('proxyPort', '1234');
- this.set('targetType', TYPE_TARGET_TCP);
await render(
hbs`
`
);
@@ -62,14 +59,13 @@ module('Integration | Component | session/proxy-url', function (hooks) {
assert.expect(2);
this.set('proxyAddress', 'http://localhost');
this.set('proxyPort', '1234');
- this.set('targetType', TYPE_TARGET_TCP);
await render(
hbs`
`
);
@@ -82,14 +78,13 @@ module('Integration | Component | session/proxy-url', function (hooks) {
assert.expect(2);
this.set('proxyAddress', 'http://localhost');
this.set('proxyPort', '1234');
- this.set('targetType', TYPE_TARGET_SSH);
await render(
hbs`
`
);