From 616738070441c4f74e5cd2bbc45f5f245afb3388 Mon Sep 17 00:00:00 2001 From: Alexey Kontsevoy Date: Mon, 16 Oct 2017 21:08:24 -0400 Subject: [PATCH] fix terminal title when connected to unlisted server --- ....4a662ad59690ea8b5b60.js => app.91911a466ab6998ab848.js} | 4 ++++ ...662ad59690ea8b5b60.js => styles.91911a466ab6998ab848.js} | 0 ...662ad59690ea8b5b60.js => vendor.91911a466ab6998ab848.js} | 2 +- web/dist/index.html | 2 +- web/src/app/flux/terminal/store.js | 6 +++++- 5 files changed, 11 insertions(+), 3 deletions(-) rename web/dist/app/{app.4a662ad59690ea8b5b60.js => app.91911a466ab6998ab848.js} (99%) rename web/dist/app/{styles.4a662ad59690ea8b5b60.js => styles.91911a466ab6998ab848.js} (100%) rename web/dist/app/{vendor.4a662ad59690ea8b5b60.js => vendor.91911a466ab6998ab848.js} (99%) diff --git a/web/dist/app/app.4a662ad59690ea8b5b60.js b/web/dist/app/app.91911a466ab6998ab848.js similarity index 99% rename from web/dist/app/app.4a662ad59690ea8b5b60.js rename to web/dist/app/app.91911a466ab6998ab848.js index d3587bd4322..ea6de1375cd 100644 --- a/web/dist/app/app.4a662ad59690ea8b5b60.js +++ b/web/dist/app/app.91911a466ab6998ab848.js @@ -17679,6 +17679,10 @@ webpackJsonp([0],[ return this.login + '@' + this.hostname; } + if (this.serverId && this.login) { + return this.login + '@' + this.serverId; + } + return ''; }; diff --git a/web/dist/app/styles.4a662ad59690ea8b5b60.js b/web/dist/app/styles.91911a466ab6998ab848.js similarity index 100% rename from web/dist/app/styles.4a662ad59690ea8b5b60.js rename to web/dist/app/styles.91911a466ab6998ab848.js diff --git a/web/dist/app/vendor.4a662ad59690ea8b5b60.js b/web/dist/app/vendor.91911a466ab6998ab848.js similarity index 99% rename from web/dist/app/vendor.4a662ad59690ea8b5b60.js rename to web/dist/app/vendor.91911a466ab6998ab848.js index 998f6d43d2b..8c5253942f9 100644 --- a/web/dist/app/vendor.4a662ad59690ea8b5b60.js +++ b/web/dist/app/vendor.91911a466ab6998ab848.js @@ -1,4 +1,4 @@ -!function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={exports:{},id:n,loaded:!1};return t[n].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n=window.webpackJsonp;window.webpackJsonp=function(o,a){for(var s,u,l=0,c=[];l
- + diff --git a/web/src/app/flux/terminal/store.js b/web/src/app/flux/terminal/store.js index 3b89f6dd555..89034bb4dc0 100644 --- a/web/src/app/flux/terminal/store.js +++ b/web/src/app/flux/terminal/store.js @@ -59,11 +59,15 @@ export class TermRec extends Record({ return ttyParams; } - getServerLabel() { + getServerLabel() { if (this.hostname && this.login) { return `${this.login}@${this.hostname}`; } + if (this.serverId && this.login) { + return `${this.login}@${this.serverId}`; + } + return ''; } }