Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update component #1253

Merged
merged 2 commits into from
Aug 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions ui_src/src/components/createStationForm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@ const retanionOptions = [
{
id: 4,
value: 'ack_based',
disabled: isCloud() ? false : true,
label: 'Ack based',
onlyCloud: isCloud() ? false : true
label: 'Ack based'
}
];

Expand Down
6 changes: 3 additions & 3 deletions ui_src/src/components/produceMessages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const ProduceMessages = ({ stationName, cancel, produceMessagesRef, setLoading }

useEffect(() => {
produceMessagesRef.current = onFinish;
}, []);
}, [messageExample]);

const updateFormState = (field, value) => {
let updatedValue = { ...formFields };
Expand Down Expand Up @@ -139,7 +139,7 @@ const ProduceMessages = ({ stationName, cancel, produceMessagesRef, setLoading }
<div className="produce-modal-wrapper">
<div className="produce-message">
<div className="generate-wrapper">
<p className="field-title">Value</p>
<p className="field-title">JSON-based value</p>
<div className="generate-action" onClick={() => generateMessage()}>
<img src={refresh} width="14" />
<span>Generate example</span>
Expand Down Expand Up @@ -220,7 +220,7 @@ const ProduceMessages = ({ stationName, cancel, produceMessagesRef, setLoading }
<Form.Item>
<div className="add-field" onClick={() => add()}>
<FiPlus />
<span>Add field</span>
<span>New header</span>
</div>
</Form.Item>
</>
Expand Down
3 changes: 2 additions & 1 deletion ui_src/src/components/titleComponent/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react';
import './style.scss';
import Lottie from 'lottie-react';
import CloudOnly from '../cloudOnly';
import { isCloud } from '../../services/valueConvertor';

const TitleComponent = (props) => {
const { headerTitle, typeTitle = 'header', headerDescription, style, img, finish, required, learnMore = false, link, cloudOnly = false } = props;
Expand All @@ -27,7 +28,7 @@ const TitleComponent = (props) => {
{headerTitle}
</p>
)}
{cloudOnly && <CloudOnly position={'relative'} />}
{cloudOnly && !isCloud() && <CloudOnly position={'relative'} />}
</div>
{headerDescription && (
<p className="header-description" style={style?.description}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,8 @@ const ProduceConsumList = ({ producer }) => {
<div className="header-img-container">
<img className="headerImage" src={playVideoIcon} alt="stationImg" />
</div>
<p>Produce</p>
<label>Quick message producing.</label>
<p>Produce a message</p>
<label>Produce a message through the Console.</label>
</div>
}
className={'modal-wrapper produce-modal'}
Expand Down