-
Notifications
You must be signed in to change notification settings - Fork 4
Fix Export CSV Button success status for SA,SE,CC at context change #3272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Export CSV Button success status for SA,SE,CC at context change #3272
Conversation
…y, 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 Signed-off-by: sBouzols <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests:
no reset is done on sensi result column sort change
no reset is done when switching to another tab (tree or spreadsheet tab), and returning to the currently result tab
…t 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. Signed-off-by: sBouzols <[email protected]>
fixed, please check again |
tested ok |
…remove local duplicated component (#3274) Signed-off-by: sBouzols <[email protected]>
0aa10d7
into
fix_export_csv_export_button_status
|
* 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 * Fix Export CSV Button success status for SA,SE,CC at context change (#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]>
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