diff --git a/waltz-ng/client/data-flow/components/svelte/flow-detail-tab/FlowDetailPanel.svelte b/waltz-ng/client/data-flow/components/svelte/flow-detail-tab/FlowDetailPanel.svelte index eb1aaf8ab8..bc1230e754 100644 --- a/waltz-ng/client/data-flow/components/svelte/flow-detail-tab/FlowDetailPanel.svelte +++ b/waltz-ng/client/data-flow/components/svelte/flow-detail-tab/FlowDetailPanel.svelte @@ -44,6 +44,17 @@ let physicalFlows = []; let logicalFlows = []; + function determineIfAggregateView(ref) { + switch (ref.kind) { + case "APPLICATION": + case "END_USER_APPLICATION": + case "ACTOR": + return false; + default: + return true; + } + } + onMount(() => { resetFlowDetailsStore(); flowClassificationCall = flowClassificationStore.findAll(); @@ -92,6 +103,9 @@ flowViewCall = logicalFlowStore.getViewForSelector(selectionOptions); } } + + $: isAggregateView = parentEntityRef && determineIfAggregateView(parentEntityRef); + @@ -108,7 +122,8 @@ + {physicalFlows} + {isAggregateView}/> d.kind === FilterKinds.FLOW_CLASSIFICATION); @@ -32,18 +33,20 @@ $: directionFilter = _.find($filters, d => d.kind === FilterKinds.DIRECTION); {/if} -
- - Flow Direction - {#if !_.isEqual(_.get(directionFilter, ["direction"], Directions.ALL), Directions.ALL)} - - - - {/if} - - -
+ {#if isAggregateView === false} +
+ + Flow Direction + {#if !_.isEqual(_.get(directionFilter, ["direction"], Directions.ALL), Directions.ALL)} + + + + {/if} + + +
+ {/if}