stub remote show all

This commit is contained in:
sawka 2022-09-24 19:53:06 -07:00
parent 121da87eea
commit aa0f9d98d1
3 changed files with 25 additions and 2 deletions

View File

@ -669,7 +669,23 @@ class TextAreaInput extends React.Component<{}, {}> {
}
@mobxReact.observer
class InfoShowRemote extends React.Component<{}, {}> {
class InfoRemoteShowAll extends React.Component<{}, {}> {
render() {
let inputModel = GlobalModel.inputModel;
let infoMsg = inputModel.infoMsg.get();
if (infoMsg == null || !infoMsg.remoteshowall) {
return null;
}
return (
<div className="info-remote-showall">
showall
</div>
);
}
}
@mobxReact.observer
class InfoRemoteShow extends React.Component<{}, {}> {
getRemoteTypeStr(remote : RemoteType) : string {
let mshellStr = "";
if (!isBlank(remote.mshellversion)) {
@ -823,7 +839,8 @@ class InfoMsg extends React.Component<{}, {}> {
</For>
</div>
</If>
<InfoShowRemote key="infoshow"/>
<InfoRemoteShow key="inforemoteshow"/>
<InfoRemoteShowAll key="inforemoteshowall"/>
<If condition={infoMsg && infoMsg.infocomps != null && infoMsg.infocomps.length > 0}>
<div key="infocomps" className="info-comps">
<For each="istr" index="idx" of={infoMsg.infocomps}>

View File

@ -856,6 +856,11 @@ body .xterm .xterm-viewport {
}
}
.info-remote-showall {
color: #d3d7cf;
.mono-font(12px);
}
.text-button {
.mono-font(12px, 600);
color: @term-white;

View File

@ -83,6 +83,7 @@ type RemoteType = {
errorstr : string,
defaultstate : RemoteStateType,
connectmode : string,
autoinstall : boolean,
remoteidx : number,
archived : boolean,
uname : string,