mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-22 16:48:23 +01:00
remove more cmdid references
This commit is contained in:
parent
239f87ac42
commit
fb823cfd79
@ -41,7 +41,6 @@ type VisType = "visible" | "";
|
||||
type InterObsValue = {
|
||||
sessionid : string,
|
||||
lineid : string,
|
||||
cmdid : string,
|
||||
visible : mobx.IObservableValue<boolean>,
|
||||
timeoutid? : any,
|
||||
};
|
||||
|
@ -2810,7 +2810,7 @@ class Model {
|
||||
let wasRunning = cmdStatusIsRunning(origStatus);
|
||||
let isRunning = cmdStatusIsRunning(newStatus);
|
||||
if (wasRunning && !isRunning) {
|
||||
// console.log("cmd status", screenId, cmdId, origStatus, "=>", newStatus);
|
||||
// console.log("cmd status", screenId, lineId, origStatus, "=>", newStatus);
|
||||
let ptr = this.getActiveLine(screenId, lineId);
|
||||
if (ptr != null) {
|
||||
let screen = ptr.screen;
|
||||
|
@ -405,7 +405,7 @@ class WebLineCmdView extends React.Component<{line : T.WebLine, cmd : T.WebCmd,
|
||||
<TerminalRenderer line={line} cmd={cmd} width={width} staticRender={staticRender} visible={visible} onHeightChange={this.handleHeightChange}/>
|
||||
</If>
|
||||
<If condition={rendererPlugin != null}>
|
||||
<SimpleBlobRenderer rendererContainer={WebShareModel} cmdId={line.lineid} plugin={rendererPlugin} onHeightChange={this.handleHeightChange} initParams={this.makeRendererModelInitializeParams()}/>
|
||||
<SimpleBlobRenderer rendererContainer={WebShareModel} lineId={line.lineid} plugin={rendererPlugin} onHeightChange={this.handleHeightChange} initParams={this.makeRendererModelInitializeParams()}/>
|
||||
</If>
|
||||
<If condition={cmd && cmd.rtnstate}>
|
||||
<div key="rtnstate" className="cmd-rtnstate" style={{visibility: ((cmd.status == "done") ? "visible" : "hidden")}}>
|
||||
@ -559,7 +559,7 @@ class TerminalRenderer extends React.Component<{line : T.WebLine, cmd : T.WebCmd
|
||||
<If condition={!isFocused}>
|
||||
<div key="term-block" className="term-block" onClick={this.clickTermBlock}></div>
|
||||
</If>
|
||||
<div key="term-connectelem" className="terminal-connectelem" ref={this.termRef} data-cmdid={line.lineid} style={{height: termHeight}}></div>
|
||||
<div key="term-connectelem" className="terminal-connectelem" ref={this.termRef} data-lineid={line.lineid} style={{height: termHeight}}></div>
|
||||
<If condition={!termLoaded}><div key="term-loading" className="terminal-loading-message">...</div></If>
|
||||
|
||||
</div>
|
||||
|
@ -475,7 +475,7 @@ class WebShareModelClass {
|
||||
}
|
||||
|
||||
setContentHeight(context : T.RendererContext, height : number) : void {
|
||||
let key = context.cmdId;
|
||||
let key = context.lineId;
|
||||
this.contentHeightCache[key] = height;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user