1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

master-merge fix

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman 2021-10-18 13:30:38 +03:00
parent d55d6a1344
commit 0c517b14d0
3 changed files with 31 additions and 31 deletions

View File

@ -96,7 +96,7 @@ export class ReleaseDetails extends Component<Props> {
async loadDetails() {
const { release } = this.props;
try {
this.details = null;
this.details = await getRelease(release.getName(), release.getNs());
@ -165,7 +165,7 @@ export class ReleaseDetails extends Component<Props> {
/>
<MonacoEditor
className={cssNames({ loading: valuesLoading })}
readOnly={valuesLoading || this.showOnlyUserSuppliedValues}
readOnly={valuesLoading}
value={values}
onChange={text => this.values = text}
>

View File

@ -32,7 +32,6 @@ import { Table, TableCell, TableHead, TableRow } from "../table";
import { Input } from "../input";
import { KubeObjectMeta } from "../kube-object-meta";
import { MonacoEditor } from "../monaco-editor";
import { UserStore } from "../../../common/user-store";
import logger from "../../../common/logger";
interface Props extends KubeObjectDetailsProps<CustomResourceDefinition> {
@ -125,37 +124,37 @@ export class CRDDetails extends React.Component<Props> {
</TableRow>
</Table>
{printerColumns.length > 0 &&
<>
<DrawerTitle title="Additional Printer Columns"/>
<Table selectable className="printer-columns box grow">
<TableHead>
<TableCell className="name">Name</TableCell>
<TableCell className="type">Type</TableCell>
<TableCell className="json-path">JSON Path</TableCell>
</TableHead>
{
printerColumns.map((column, index) => {
const { name, type, jsonPath } = column;
<>
<DrawerTitle title="Additional Printer Columns"/>
<Table selectable className="printer-columns box grow">
<TableHead>
<TableCell className="name">Name</TableCell>
<TableCell className="type">Type</TableCell>
<TableCell className="json-path">JSON Path</TableCell>
</TableHead>
{
printerColumns.map((column, index) => {
const { name, type, jsonPath } = column;
return (
<TableRow key={index}>
<TableCell className="name">{name}</TableCell>
<TableCell className="type">{type}</TableCell>
<TableCell className="json-path">
<Badge label={jsonPath}/>
</TableCell>
</TableRow>
);
})
}
</Table>
</>
return (
<TableRow key={index}>
<TableCell className="name">{name}</TableCell>
<TableCell className="type">{type}</TableCell>
<TableCell className="json-path">
<Badge label={jsonPath}/>
</TableCell>
</TableRow>
);
})
}
</Table>
</>
}
{validation &&
<>
<DrawerTitle title="Validation"/>
<MonacoEditor readOnly value={validation}/>
</>
<>
<DrawerTitle title="Validation"/>
<MonacoEditor readOnly value={validation}/>
</>
}
</div>
);

View File

@ -19,6 +19,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
import { jest } from "@jest/globals";
import { observable, reaction } from "mobx";
import { StorageHelper } from "../storageHelper";
import { delay } from "../../../common/utils/delay";