vanshaj2023 commented on issue #3326:
URL: 
https://github.com/apache/apisix-dashboard/issues/3326#issuecomment-4069717725

   Hi @Baoyuantop, 
   
   I'd like to work on this!
   
   One thing worth noting: `isDirty` won't work reliably here since `useEffect` 
calls `setValue` (not `reset`), marking the form dirty before the user touches 
anything. A direct comparison is safer:
   
   ```ts
   methods.getValues('config') !== toConfigStr(config)
   ```
   
   I'll use the existing `modals.openConfirmModal` pattern from 
`DeleteResourceBtn.tsx`, guard it to add/edit modes only, and add 
`info.unsaved.*` i18n keys across all 5 locales.
   
   Can I go ahead and open a PR?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to