diff --git a/src/shared/components/ResourceEditor/index.tsx b/src/shared/components/ResourceEditor/index.tsx
index 34ed4fe12..1a20bfdd0 100644
--- a/src/shared/components/ResourceEditor/index.tsx
+++ b/src/shared/components/ResourceEditor/index.tsx
@@ -21,6 +21,7 @@ import { useEditorPopover, useEditorTooltip } from './useEditorTooltip';
import { DATA_EXPLORER_GRAPH_FLOW_PATH } from '../../store/reducers/data-explorer';
import ResourceResolutionCache from './ResourcesLRUCache';
import './ResourceEditor.less';
+
export interface ResourceEditorProps {
rawData: { [key: string]: any };
onSubmit: (rawData: { [key: string]: any }) => void;
diff --git a/src/shared/components/ResourceForm/ResourceCreateUpload.tsx b/src/shared/components/ResourceForm/ResourceCreateUpload.tsx
index 97ecd00c6..c6c67f019 100644
--- a/src/shared/components/ResourceForm/ResourceCreateUpload.tsx
+++ b/src/shared/components/ResourceForm/ResourceCreateUpload.tsx
@@ -46,7 +46,12 @@ const ResourceCreateUpload: React.FunctionComponent<{
return (
- saveAndCreate(r)} busy={formBusy} />
+ saveAndCreate(r)}
+ busy={formBusy}
+ orgLabel={orgLabel}
+ projectLabel={projectLabel}
+ />
diff --git a/src/shared/components/ResourceForm/ResourceForm.tsx b/src/shared/components/ResourceForm/ResourceForm.tsx
index 1cb580aa0..3895361f4 100644
--- a/src/shared/components/ResourceForm/ResourceForm.tsx
+++ b/src/shared/components/ResourceForm/ResourceForm.tsx
@@ -83,6 +83,8 @@ export interface ResourceFormProps {
}): Promise;
onDeprecate?(): any;
mode?: 'create' | 'edit';
+ orgLabel: string;
+ projectLabel: string;
}
/**
@@ -94,6 +96,8 @@ const ResourceForm: React.FunctionComponent = ({
onSubmit,
onDeprecate = () => {},
mode = 'create',
+ orgLabel,
+ projectLabel,
}) => {
const [jsonValue, setJsonValue] = React.useState<{ [key: string]: any }>(
DEFAULT_RESOURCE
@@ -175,8 +179,8 @@ const ResourceForm: React.FunctionComponent = ({
onSubmit={handleSubmit}
showExpanded={false}
showMetadataToggle={false}
- orgLabel=""
- projectLabel=""
+ orgLabel={orgLabel}
+ projectLabel={projectLabel}
onFullScreen={() => {}}
showFullScreen={false}
/>