Skip to content

Commit

Permalink
fix: merged main into branch
Browse files Browse the repository at this point in the history
  • Loading branch information
olensmar committed Jan 31, 2022
1 parent 49421e6 commit 36714d0
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions src/components/organisms/ActionsPane/ActionsPane.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -444,12 +444,12 @@ const ActionsPane = (props: {contentHeight: string}) => {
>
{uiState.isFolderLoading || previewLoader.isLoading ? (
<S.Skeleton active />
) : (
) : activeTabKey === 'source' ? (
!isClusterDiffVisible &&
(selectedResourceId || selectedPath || selectedValuesFileId) && (
<Monaco applySelection={applySelection} diffSelectedResource={diffSelectedResource} />
)
)}
) : null}
</TabPane>
{selectedResource && (isKustomization || resourceKindHandler?.formEditorOptions?.editorSchema) && (
<TabPane
Expand All @@ -460,16 +460,18 @@ const ActionsPane = (props: {contentHeight: string}) => {
>
{uiState.isFolderLoading || previewLoader.isLoading ? (
<S.Skeleton active />
) : isKustomization ? (
<FormEditor formSchema={extractFormSchema(getResourceSchema(selectedResource))} />
) : (
resourceKindHandler?.formEditorOptions && (
<FormEditor
formSchema={resourceKindHandler.formEditorOptions.editorSchema}
formUiSchema={resourceKindHandler.formEditorOptions.editorUiSchema}
/>
) : activeTabKey === 'form' ? (
isKustomization ? (
<FormEditor formSchema={extractFormSchema(getResourceSchema(selectedResource))} />
) : (
resourceKindHandler?.formEditorOptions && (
<FormEditor
formSchema={resourceKindHandler.formEditorOptions.editorSchema}
formUiSchema={resourceKindHandler.formEditorOptions.editorUiSchema}
/>
)
)
)}
) : null}
</TabPane>
)}
{selectedResource && resourceKindHandler && !isKustomizationResource(selectedResource) && (
Expand Down

0 comments on commit 36714d0

Please sign in to comment.