Skip to content

Commit

Permalink
Marshal/Unmarshal issues fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
mgubaidullin committed Dec 16, 2024
1 parent 9544837 commit e70963a
Show file tree
Hide file tree
Showing 5 changed files with 406 additions and 325 deletions.
4 changes: 2 additions & 2 deletions karavan-app/src/main/webui/src/api/ProjectService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ import { ComponentApi } from 'karavan-core/lib/api/ComponentApi';

export class ProjectService {

public static startDevModeContainer(project: Project, verbose: boolean) {
public static startDevModeContainer(project: Project, verbose: boolean, compile: boolean = false) {
useDevModeStore.setState({status: 'wip'})
KaravanApi.startDevModeContainer(project, verbose, res => {
KaravanApi.startDevModeContainer(project, verbose, compile, res => {
useDevModeStore.setState({status: 'none'})
if (res.status === 200 || res.status === 201) {
ProjectEventBus.sendLog('set', '');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,15 @@ export function DataFormatField(props: Props) {
const className = CamelMetadataApi.getCamelDataFormatMetadataByName(dataFormat)?.className;
value = CamelDefinitionApi.createDataFormat(className || '', {}); // perhaps copy other similar fields later
}
const df = CamelDefinitionApi.createStep(props.dslName, {});
(df as any)[dataFormat] = value;
(df as any)['uuid'] = props.value.uuid;
(df as any)['id'] = (props.value as any)['id'];
const df: any = CamelDefinitionApi.createStep(props.dslName, {});
const pValue = props.value as any
df[dataFormat] = value;
df.uuid = props.value.uuid;
df.variableReceive = pValue.variableReceive;
df.variableSend = pValue.variableSend;
df.description = pValue.description;
df.disabled = pValue.disabled;
df.id = pValue.id;

props.onDataFormatChange?.(df);
setSelectIsOpen(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,15 @@ export function DataFormatField(props: Props) {
const className = CamelMetadataApi.getCamelDataFormatMetadataByName(dataFormat)?.className;
value = CamelDefinitionApi.createDataFormat(className || '', {}); // perhaps copy other similar fields later
}
const df = CamelDefinitionApi.createStep(props.dslName, {});
(df as any)[dataFormat] = value;
(df as any)['uuid'] = props.value.uuid;
(df as any)['id'] = (props.value as any)['id'];
const df: any = CamelDefinitionApi.createStep(props.dslName, {});
const pValue = props.value as any
df[dataFormat] = value;
df.uuid = props.value.uuid;
df.variableReceive = pValue.variableReceive;
df.variableSend = pValue.variableSend;
df.description = pValue.description;
df.disabled = pValue.disabled;
df.id = pValue.id;

props.onDataFormatChange?.(df);
setSelectIsOpen(false);
Expand Down
Loading

0 comments on commit e70963a

Please sign in to comment.