Skip to content

Conversation

sBouzols
Copy link
Contributor

fix(SA,SE,CC): reset export successful states when button is disabled which happen when results change or computation status change.

Remark: For other computation types (LF, State estim, Voltage init), we need more work in commons-ui on CsvExport component, to use isDownloadLoading and isDownloadSuccessful of the ExportCsvButton child component even if its direct export without backend requests

…ed which happen when results change or computation status change.

Remark: For other computation types (LF, State estim, Voltage init), we need more work in commons-ui on `CsvExport` component, to use `isDownloadLoading` and `isDownloadSuccessful` of the `ExportCsvButton` child component even if its direct export without backend requests

Signed-off-by: sBouzols <[email protected]>
@sBouzols
Copy link
Contributor Author

see #3272 as well

@sBouzols sBouzols requested a review from souissimai September 19, 2025 15:14
…3272)

* fix(SA,SE,CC): reset `exportSuccessful` states when context like study, node or rootNetwork change as well as resultType, computation type or tab change.
refactor(SE): move export CSV Button in a separeted component like for other computations
* fix(SA, SE, CC): from review add `appTabIndex` trigger to reset export CSV button status
* fix(SE): Add `sortConfig` trigger to reset export CSV button status, for other computation types results are invalidated when sorting then the button is disabled and trigger a status reset.
* refactor(SA,SE,CC): use `ExportCsvButton` component from commons-ui, remove local duplicated component (#3274)

Signed-off-by: sBouzols <[email protected]>
Copy link

@sBouzols sBouzols merged commit 940830b into main Sep 23, 2025
5 checks passed
@sBouzols sBouzols deleted the fix_export_csv_export_button_status branch September 23, 2025 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants