-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WV-2870 Allow users to create image snapshots of modified classificat…
…ion type imagery in Worldview (#5580) * Refactor image download panel and toolbar container This commit refactors the image download panel and toolbar container components. In the image download panel, the code has been modified to import the `useSelector` hook from `react-redux` and the `getActivePalettes` selector from `../../modules/palettes/selectors`. The `activePalettes` variable is now retrieved using the `useSelector` hook. In the toolbar container, the code has been modified to remove an unnecessary `await` statement and the corresponding `getPromise` function call. The `await this.getPromise(hasCustomPalette, 'palette', clearCustoms, 'Notice');` line has been removed. Additionally, the `imageUtilGetLayers` function in `image-download/util.js` has been modified to accept an additional parameter `activePalettes`. The `activePalettes` variable is now passed as an argument to the `imageUtilGetLayers` function in the `getDownloadUrl` function. Lastly, a new selector function `getActivePalettes` has been added to `palettes/selectors.js` to retrieve the active palettes from the state. * Refactor image download panel and toolbar container * Remove old tests
- Loading branch information
1 parent
b430749
commit 276d48c
Showing
6 changed files
with
29 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters