mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 18:20:27 +00:00
Merge pull request #762 from weaveworks/761-fix-terminal-title
Fixes popped out terminal title
This commit is contained in:
@@ -21,6 +21,7 @@ export class TerminalApp extends React.Component {
|
||||
receiveControlPipeFromParams(params.pipe.id, null, params.pipe.raw, false);
|
||||
|
||||
this.state = {
|
||||
title: params.title,
|
||||
titleBarColor: params.titleBarColor,
|
||||
statusBarColor: params.statusBarColor,
|
||||
controlPipe: AppStore.getControlPipe()
|
||||
|
||||
@@ -174,7 +174,6 @@ export default class Terminal extends React.Component {
|
||||
}
|
||||
|
||||
componentDidUpdate(prevProps, prevState) {
|
||||
log('cdu terminal');
|
||||
const sizeChanged = (
|
||||
prevState.cols !== this.state.cols ||
|
||||
prevState.rows !== this.state.rows
|
||||
@@ -182,7 +181,7 @@ export default class Terminal extends React.Component {
|
||||
if (sizeChanged) {
|
||||
this.term.resize(this.state.cols, this.state.rows);
|
||||
}
|
||||
if (this.isEmbedded()) {
|
||||
if (!this.isEmbedded()) {
|
||||
setDocumentTitle(this.getTitle());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user