Skip to content

Conversation

@hirokiterashima
Copy link
Member

Changes

  • Move TeacherProjectService.doesAnyComponentHaveWork() to NodeAuthoringComponent.hasComponentsWithWork()
  • Clean up NodeAuthoringComponent.hasComponentsWithWork()
    • use array.some()
    • remove unnecessary checks

Test

  • In the AT > step editing view, the node's "show save/submit button" settings are properly set when you delete component(s) as before, e.g.,
    • if no component has submit button but there is at least one component that saves work, the node's save button should be set to show

@hirokiterashima hirokiterashima added this to the Tech Debt 18 -> 17 milestone Aug 20, 2024
@hirokiterashima hirokiterashima self-assigned this Aug 20, 2024
@hirokiterashima hirokiterashima marked this pull request as ready for review August 20, 2024 16:22
Copy link
Member

@geoffreykwan geoffreykwan left a comment

Choose a reason for hiding this comment

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

Looks good.

@hirokiterashima hirokiterashima merged commit 76aa224 into develop Aug 20, 2024
@hirokiterashima hirokiterashima deleted the refactor-teacherProjectService-move-doesAnyComponentHaveWork-to-NodeAuthoring branch August 20, 2024 21:37
@geoffreykwan
Copy link
Member

🎉 This issue has been resolved in version 5.156.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants