{prevStepNotice}
-{prevStepNotice}
- GPU request: {gpuType + ' - '} - {this.props.limits[gpuType]} -
-- Base Image: {effectiveImage} -
- ) - ); - } + useEffect(() => { + return () => { + if (isDOMElement(cellElement)) { + cellElement.classList.remove('kale-merged-cell'); + const codeMirrorElem = cellElement.querySelector( + '.CodeMirror', + ) as HTMLElement; + if (codeMirrorElem) { + codeMirrorElem.style.border = ''; + } + } + if (wrapperRef.current) { + wrapperRef.current.remove(); + } + }; + }, [cellElement]); - createCacheText() { - // Only show if caching is explicitly set (not using pipeline default) - if (this.props.enableCaching === undefined) { - return null; - } + const openEditor = () => { + context.onEditorVisibilityChange(true); + }; - const cacheStatus = this.props.enableCaching ? 'enabled' : 'disabled'; - return ( + const gpuType = Object.keys(limits)[0] || undefined; + const limitsText = gpuType ? ( ++ GPU request: {gpuType + ' - '} + {limits[gpuType]} +
+ ) : null; + + const baseImageText = baseImage ? ( ++ Base Image:{' '} + {baseImage || pipelineBaseImage || defaultBaseImage || DEFAULT_BASE_IMAGE} +
+ ) : null; + + const cacheText = + enableCaching !== undefined ? (- Cache: {cacheStatus} + Cache: {enableCaching ? 'enabled' : 'disabled'}
- ); - } - - /** - * Create a list of div dots that represent the dependencies of the current - * block - */ - updateDependencies() { - const dependencies = this.props.stepDependencies.map((name, i) => { - const rgb = this.getColorFromName(name); - return ( -depends on:
- ) : null} - {this.state.dependencies} - - {this.createLimitsText()} - {this.createBaseImageText()} - {this.createCacheText()} - > - ); + ) : null; + + const details = isReserved ? null : ( + <> + {dependencies.length > 0 ? ( +depends on:
+ ) : null} + {dependencies} + {limitsText} + {baseImageText} + {cacheText} + > + ); - return ( + return ( +step:
- )} - -