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

Disable editor's save button while it is saving #11533

Merged
merged 1 commit into from
Aug 27, 2021

Conversation

saraycp
Copy link
Contributor

@saraycp saraycp commented Aug 26, 2021

After pressing the save button, the saving can take a while. During that time a progress bar appears and the save button should be disabled to avoid getting many save requests and, consequently, duplicated revisions of the file.

Fixes #11247

How to test?

  • Go to review-app link
  • Open any package's file or Meta
  • Edit the file
  • Click on Save
  • You'll see the button is disabled while the progress bar is present

@saraycp saraycp added Frontend Things related to the OBS RoR app review-app Apply this label if you want a review app started labels Aug 26, 2021
@obs-bot
Copy link
Collaborator

obs-bot commented Aug 26, 2021

@saraycp saraycp force-pushed the disable-codemirror-save-button branch from 948fb5f to abde384 Compare August 26, 2021 16:04
After pressing the save button, the saving can take a while. During that
time a progress bar appears and the save button should be disabled to
avoid getting many save requests and consequently duplicated revisions
of the file.
@saraycp saraycp force-pushed the disable-codemirror-save-button branch from abde384 to 8fc9aca Compare August 26, 2021 16:07
@saraycp saraycp merged commit 2dcabf8 into openSUSE:master Aug 27, 2021
@saraycp saraycp deleted the disable-codemirror-save-button branch August 27, 2021 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Frontend Things related to the OBS RoR app review-app Apply this label if you want a review app started
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Edit file doesn't disable save button on submit
3 participants