Skip to content
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

#9034: Fix - Spinner no longer appear when saving a resource #9044

Merged
merged 1 commit into from
Mar 29, 2023

Conversation

dsuren1
Copy link
Contributor

@dsuren1 dsuren1 commented Mar 22, 2023

Description

This PR fixes the spinner when saving a resource in the save modal

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x", remove the others)

  • Bugfix

Issue

What is the current behavior?

What is the new behavior?

  • When resource is loading or when save is in progress the inline spinner is displayed at the bottom-left area of the modal
  • Save and close button is displayed when resource/save in progress
  • Same behavior for Map, dashboard and geostory

Screenshot

image

Breaking change

Does this PR introduce a breaking change? (check one with "x", remove the other)

  • Yes, and I documented them in migration notes
  • No

Other useful information

@dsuren1 dsuren1 added this to the 2023.01.01 milestone Mar 22, 2023
@dsuren1 dsuren1 self-assigned this Mar 22, 2023
@dsuren1 dsuren1 requested a review from MV88 March 22, 2023 13:22
@dsuren1 dsuren1 linked an issue Mar 22, 2023 that may be closed by this pull request
1 task

isLoading = () => {
return (
this.props.loading || this.props.resource?.loading || this.state?.loading
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't like much having three source of truth for a single loading flag...

@MV88 MV88 added the BackportNeeded Commits provided for an issue need to be backported to the milestone's stable branch label Mar 29, 2023
@MV88 MV88 merged commit 278daab into geosolutions-it:master Mar 29, 2023
@MV88
Copy link
Contributor

MV88 commented Mar 29, 2023

@ElenaGallo testable in DEV

@ElenaGallo
Copy link
Contributor

Test passed , @dsuren1 please backport to the 2023.01.xx branch. Thanks

dsuren1 added a commit to dsuren1/MapStore2 that referenced this pull request Mar 30, 2023
@tdipisa tdipisa removed the BackportNeeded Commits provided for an issue need to be backported to the milestone's stable branch label Mar 30, 2023
tdipisa pushed a commit that referenced this pull request Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Loading spinner no longer appear whan saving a resource
4 participants