remove more cmdid references

This commit is contained in:
sawka 2023-07-30 18:26:25 -07:00
parent 239f87ac42
commit fb823cfd79
4 changed files with 4 additions and 5 deletions

View File

@ -41,7 +41,6 @@ type VisType = "visible" | "";
type InterObsValue = {
sessionid : string,
lineid : string,
cmdid : string,
visible : mobx.IObservableValue<boolean>,
timeoutid? : any,
};

View File

@ -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;

View File

@ -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>

View File

@ -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;
}