You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy the "modId" field from AddtoModModal, and all the pieces required for it
select the keepLocalCopyOnCreateMod from redux
Change modal title and submit button copy based on the flag, see wireframe above
Add an input param to the cloneActiveModComponent thunk
modMetadata?: ModMetadata
cloned component has the mod (re-)assigned if passed in
cloned component should have optionsArgs overwritten by the destination mod’s options (options pulled from activated components of that mod)
Submit handler has similar logic as AddToModalModal
If new mod is selected, show the create mod modal
Change showCreateModModal action creator to make the keepLocalCopy payload optional, don’t update the flag if it’s not passed in (was already set here, but we still need to support the payload for other call sites)
CreateModModal should still basically work the same
if mod is selected, call the cloneActiveModComponent with new mod metadata param
Add new redux action showMoveFromModModal
keepLocalCopy payload param, set the redux flag keepLocalCopyOnCreateMod
Slice spec here
onRemoveFromMod
prop inActionMenu
MoveFromModModal
selectEditorModalVisibilities
removeModComponentFormStateFromMod
redux action/reducerkeepLocalCopyOnCreateMod
field in reduxMoveFromModModal
showRemoveFromModModal
→showMoveFromModModal
redux action/reducerREMOVE_FROM_MOD
→MOVE_FROM_MOD
modal key"modId"
field fromAddtoModModal
, and all the pieces required for itkeepLocalCopyOnCreateMod
from reduxcloneActiveModComponent
thunkmodMetadata?: ModMetadata
optionsArgs
overwritten by the destination mod’s options (options pulled from activated components of that mod)AddToModalModal
showCreateModModal
action creator to make thekeepLocalCopy
payload optional, don’t update the flag if it’s not passed in (was already set here, but we still need to support the payload for other call sites)cloneActiveModComponent
with new mod metadata paramshowMoveFromModModal
keepLocalCopy
payload param, set the redux flagkeepLocalCopyOnCreateMod
ActionMenu
propsonClone
→onCopy
dipatch(showMoveFromModModal({ keepLocalCopy: true })
onAddToMod
→onMove
dipatch(showMoveFromModModal({ keepLocalCopy: false })
The text was updated successfully, but these errors were encountered: