Setting of payload

This commit is contained in:
2025-06-12 14:30:00 +02:00
parent 8975ea17af
commit f7304c5c7b
13 changed files with 142 additions and 84 deletions
@@ -1,5 +1,5 @@
import { FC, useEffect, useState } from 'react';
import { emptyAircraft } from '../../configs/shared';
import { unloadAircraft } from '../../configs/shared';
import { COHERENT_COMBUS_WASM_CALL, COMM_BUS_UPDATE_TARGET_EVENT } from '../../constants';
import { LoadingState } from '../../types/general';
import { WASMDataPax } from '../../types/WASMData';
@@ -210,9 +210,7 @@ const StationEntryPax: FC<StationEntryProps> = ({ WASMData, loadingState, setLoa
<ActionBar
loadingState={loadingState}
acceptDisabled={!ZFWValid() || !GWValid()}
accept={() => setLoadingState('accepted')}
reject={() => setLoadingState('preview')}
loadDisabled={!ZFWValid() || !GWValid()}
load={() => {
setLoadingState('loaded');
@@ -221,7 +219,7 @@ const StationEntryPax: FC<StationEntryProps> = ({ WASMData, loadingState, setLoa
unload={() => {
setLoadingState('preview');
emptyAircraft();
unloadAircraft();
}}
/>
</>