add rtnstate

This commit is contained in:
sawka 2023-03-31 13:26:38 -07:00
parent 576f67c5a0
commit 0a4de40e34
2 changed files with 14 additions and 3 deletions

View File

@ -1327,7 +1327,7 @@ class InfoMsg extends React.Component<{}, {}> {
</If>
<If condition={infoMsg && infoMsg.websharelink && activeScreen != null}>
<div key="infomsg" className="info-msg">
screen is now shared at <a target="_blank" href={makeExternLink(activeScreen.getWebShareUrl())}>[link]</a>
started sharing screen at <a target="_blank" href={makeExternLink(activeScreen.getWebShareUrl())}>[link]</a>
</div>
</If>
<If condition={infoMsg && infoMsg.infolines != null}>

View File

@ -25,8 +25,6 @@ let foo = LinesView;
// TODO reshare
// TODO debounce some of the updates
// TODO image size
// TODO rtnstate
function makeFullRemoteRef(ownerName : string, remoteRef : string, name : string) : string {
if (isBlank(ownerName) && isBlank(name)) {
@ -387,6 +385,19 @@ class WebLineCmdView extends React.Component<{line : T.WebLine, cmd : T.WebCmd,
<If condition={rendererPlugin != null}>
<SimpleBlobRenderer rendererContainer={WebShareModel} cmdId={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")}}>
<If condition={isBlank(cmd.rtnstatestr)}>
<div className="cmd-rtnstate-label">state unchanged</div>
<div className="cmd-rtnstate-sep"></div>
</If>
<If condition={!isBlank(cmd.rtnstatestr)}>
<div className="cmd-rtnstate-label">new state</div>
<div className="cmd-rtnstate-sep"></div>
<div className="cmd-rtnstate-diff">{cmd.rtnstatestr}</div>
</If>
</div>
</If>
</div>
);
}