File tree 2 files changed +19
-3
lines changed
public/pages/workflow_detail
2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,12 @@ interface ComponentDetailsProps {
28
28
export function ComponentDetails ( props : ComponentDetailsProps ) {
29
29
return (
30
30
< EuiPanel paddingSize = "m" >
31
- { props . isDeprovisionable ? (
31
+ { /* TODO: determine if we need this view if we want the workspace to remain
32
+ readonly once provisioned */ }
33
+ { /* {props.isDeprovisionable ? (
32
34
<ProvisionedComponentInputs />
33
- ) : props . selectedComponent ? (
35
+ ) : */ }
36
+ { props . selectedComponent ? (
34
37
< ComponentInputs
35
38
selectedComponent = { props . selectedComponent }
36
39
onFormChange = { props . onFormChange }
Original file line number Diff line number Diff line change @@ -117,6 +117,8 @@ export function ResizableWorkspace(props: ResizableWorkspaceProps) {
117
117
props . workflow !== undefined &&
118
118
! props . isNewWorkflow &&
119
119
props . workflow ?. state !== WORKFLOW_STATE . NOT_STARTED ;
120
+ // TODO: maybe remove this field. It depends on final UX if we want the
121
+ // workspace to be readonly once provisioned or not.
120
122
const readonly = props . workflow === undefined || isDeprovisionable ;
121
123
122
124
// Loading state
@@ -321,6 +323,17 @@ export function ResizableWorkspace(props: ResizableWorkspaceProps) {
321
323
components.
322
324
</ EuiCallOut >
323
325
) }
326
+ { isDeprovisionable && isDirty && (
327
+ < EuiCallOut
328
+ title = "The configured flow has been provisioned"
329
+ color = "warning"
330
+ iconType = "alert"
331
+ style = { { marginBottom : '16px' } }
332
+ >
333
+ Changes cannot be saved until the flow has first been
334
+ deprovisioned.
335
+ </ EuiCallOut >
336
+ ) }
324
337
< EuiPageHeader
325
338
style = { { marginBottom : '8px' } }
326
339
rightSideItems = { [
@@ -458,7 +471,7 @@ export function ResizableWorkspace(props: ResizableWorkspaceProps) {
458
471
< Workspace
459
472
id = "ingest"
460
473
workflow = { workflow }
461
- readonly = { readonly }
474
+ readonly = { false }
462
475
onNodesChange = { onNodesChange }
463
476
onSelectionChange = { onSelectionChange }
464
477
/>
You can’t perform that action at this time.
0 commit comments