Skip to content

Commit

Permalink
Merge pull request #1510 from memphisdev/bugfix-RND-331-fix-create-si…
Browse files Browse the repository at this point in the history
…nk-indication

fix create sink indication
  • Loading branch information
SvetaMemphis committed Dec 12, 2023
2 parents d3554bd + e22e4f9 commit a60f46a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ui_src/src/components/connectorModal/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ const ConnectorModal = ({ open, clickOutside, newConnecor, source }) => {
settings: modifiedSettings,
partitions: [stationState?.stationPartition]
});
newConnecor(data?.connector, source);
newConnecor(data?.connector, formFields?.connector_type?.toLocaleLowerCase());
} catch (error) {
setError(JSON.stringify(error));
} finally {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,9 @@ const ProduceConsumList = ({ producer }) => {
};

const handleNewConnector = (connector, source) => {
source ? setConnectorsSourceList([...connectorsSourceList, connector]) : setConnectorsSinkList([...connectorsSinkList, ...connector]);
source === 'source' ? setConnectorsSourceList([...connectorsSourceList, connector]) : setConnectorsSinkList([...connectorsSinkList, connector]);
};

useEffect(() => {
if (producer) {
let [result, activeConsumers] = concatFunction('producer', stationState?.stationSocketData);
Expand Down Expand Up @@ -430,7 +431,7 @@ const ProduceConsumList = ({ producer }) => {
</span>
<div style={{ width: '92px', maxWidth: '100%' }}>
{row?.connector_connection_id ? (
''
'N/A'
) : (
<TooltipComponent text="connected | disconnected" placement="right">
{row.connected_producers_count + ' | ' + row.disconnected_producers_count}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,15 +263,16 @@ const StationOverviewHeader = ({ refresh }) => {
} days`}
minWidth="35px"
>
<HiOutlineExclamationCircle/>
<HiOutlineExclamationCircle />
</TooltipComponent>
)}
<div className="flex-details-wrapper">
{!isCloud() && (
<p style={{display: 'flex'}}>
<p style={{ display: 'flex' }}>
<b>Partitions: </b>
{stationState?.stationMetaData?.partitions_number === 0 ? 1 : stationState?.stationMetaData?.partitions_number}
</p>)}
</p>
)}
</div>
</div>
<div className="storage-section">
Expand Down

0 comments on commit a60f46a

Please sign in to comment.