Skip to content

Commit

Permalink
feat: enhance setup form handling in dependency list
Browse files Browse the repository at this point in the history
- Added a commit action in useDependencyList to set the setup form mode to 'all' and use the default version from the state configuration.
- This change improves the user experience by ensuring the setup dialog is properly configured when triggered.
  • Loading branch information
Marvin Zhang committed Dec 23, 2024
1 parent e20d560 commit 36c0dfd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/views/dependency/list/useDependencyList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -698,6 +698,10 @@ const useDependencyList = () => {
};

const onClickTableEmptyConfigNotSetup = () => {
store.commit(`${ns}/setSetupForm`, {
mode: 'all',
version: state.config?.default_version,
});
store.commit(`${ns}/showDialog`, 'setup');
};

Expand Down

0 comments on commit 36c0dfd

Please sign in to comment.