diff --git a/ui/desktop/app/templates/scopes/scope/projects/sessions/index.hbs b/ui/desktop/app/templates/scopes/scope/projects/sessions/index.hbs index 0c645c93b..f6d0b70e3 100644 --- a/ui/desktop/app/templates/scopes/scope/projects/sessions/index.hbs +++ b/ui/desktop/app/templates/scopes/scope/projects/sessions/index.hbs @@ -31,18 +31,26 @@ {{sessionAggregate.target.displayName}} {{!-- - This should also be predicated on the session being active... - inactive sessions should not show this information, - even if it remains on the model instance + Two if's here because: + 1) Local proxy info is only relevant if the session is + active or pending (aka isCancelable). Once the session + is canceled or in the process thereof, the local proxy + may no longer be used. + 2) The session actually has proxy information associated + with it. It's possible for the user to start sessions + from other devices (or even another tab), in which case we + won't have the local proxy info available here. --}} - {{#if sessionAggregate.session.proxy}} - - {{sessionAggregate.session.proxy}} - + {{#if sessionAggregate.session.isCancelable}} + {{#if sessionAggregate.session.proxy}} + + {{sessionAggregate.session.proxy}} + + {{/if}} {{/if}}