mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-23 16:58:27 +01:00
add rtnstate
This commit is contained in:
parent
576f67c5a0
commit
0a4de40e34
@ -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}>
|
||||
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user