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, useRef, 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 { WASMDataPax } from '../../types/WASMData';
import { LoadingState } from '../../types/general';
@@ -214,9 +214,7 @@ const SBEntryPax: FC<SBEntryProps> = ({ WASMData, loadingState, username, setLoa
<ActionBar
loadingState={loadingState}
acceptDisabled={!GWValid() || SBInFlight}
accept={() => setLoadingState('loaded')}
reject={() => setLoadingState('preview')}
loadDisabled={!GWValid() || SBInFlight}
importSB={handleSB}
load={() => {
setLoadingState('loaded');
@@ -226,7 +224,7 @@ const SBEntryPax: FC<SBEntryProps> = ({ WASMData, loadingState, username, setLoa
unload={() => {
setLoadingState('preview');
emptyAircraft();
unloadAircraft();
}}
/>
</>