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

fix: Loader is not displayed in Save button while creating an entry for the collection-type #15188

Merged
merged 7 commits into from Dec 22, 2022
Merged

fix: Loader is not displayed in Save button while creating an entry for the collection-type #15188

merged 7 commits into from Dec 22, 2022

Conversation

gitstart
Copy link
Contributor

@gitstart gitstart commented Dec 15, 2022

What does it do?

Use loading instead of isLoading (wrong name) in Save button props binding.

Why is it needed?

The loading icon cannot be displayed when the save button is hit because the isLoading prop is not a valid attribute. Loading is the appropriate and correct prop because it enables the display of the loading icon while performing an action.

How to test it?

  • Go to Content Manager
  • Select any collection-type. Click on 'Create new entry'.
  • Fill the required details. Click on 'Save' button.
  • The loader icon is showing next to the Save button

Related issue(s)/PR(s)

Fixes #15177

Demo

Screen.Recording.2022-12-15.at.4.33.45.PM.mov

@codecov
Copy link

codecov bot commented Dec 15, 2022

Codecov Report

Base: 60.52% // Head: 60.52% // No change to project coverage 👍

Coverage data is based on head (151adaf) compared to base (8d51c78).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #15188   +/-   ##
=======================================
  Coverage   60.52%   60.52%           
=======================================
  Files        1352     1352           
  Lines       33172    33172           
  Branches     6334     6334           
=======================================
  Hits        20078    20078           
  Misses      11263    11263           
  Partials     1831     1831           
Flag Coverage Δ
back 50.36% <ø> (ø)
front 65.09% <ø> (ø)
unit_back 50.36% <ø> (ø)
unit_front 65.09% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...src/content-manager/pages/EditView/Header/index.js 71.95% <ø> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@gitstart gitstart marked this pull request as ready for review December 15, 2022 17:06
@ronronscelestes ronronscelestes self-assigned this Dec 19, 2022
Copy link
Contributor

@ronronscelestes ronronscelestes left a comment

Choose a reason for hiding this comment

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

nice catch, thank you 💃

@ronronscelestes ronronscelestes added source: core:content-manager Source is core/content-manager package pr: fix This PR is fixing a bug labels Dec 22, 2022
@ronronscelestes ronronscelestes added this to the 4.5.5 milestone Dec 22, 2022
@ronronscelestes ronronscelestes merged commit 0118b4e into strapi:main Dec 22, 2022
@gitstart
Copy link
Contributor Author

gitstart commented Dec 22, 2022

This PR was pushed through Gitstart, with contributions from @Beejay-bot, @raph941, @phunguyenmurcul.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: fix This PR is fixing a bug source: core:content-manager Source is core/content-manager package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Loader is not displayed in Save button while creating an entry for the collection-type
2 participants