Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Replaced KResponsiveWindow mixin by useKResponsiveWindow composable - … #11365

Merged

Conversation

FireSuperior482
Copy link
Contributor

…Media Player plugin

Testing checklist

  • Contributor has fully tested the PR manually
  • If there are any front-end changes, before/after screenshots are included
  • Critical user journeys are covered by Gherkin stories
  • Critical and brittle code paths are covered by unit tests

PR process

  • PR has the correct target branch and milestone
  • PR has 'needs review' or 'work-in-progress' label
  • If PR is ready for review, a reviewer has been added.
  • If this is an important user-facing change, PR or related issue has a 'changelog' label
  • If this includes an internal dependency change, a link to the diff is provided

Reviewer checklist

  • Automated test coverage is satisfactory
  • PR is fully functional
  • PR has been tested for accessibility regressions
  • External dependency files were updated if necessary (yarn and pip)
  • Documentation is updated
  • Contributor is in AUTHORS.md

Copy link
Member

@rtibbles rtibbles left a comment

Choose a reason for hiding this comment

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

One property missed!

mixins: [commonCoreStrings, responsiveWindowMixin, responsiveElementMixin],
mixins: [commonCoreStrings, responsiveElementMixin],
setup() {
const { windowIsSmall } = useKResponsiveWindow();
Copy link
Member

Choose a reason for hiding this comment

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

The windowIsPortrait property is also used, so must be destructured here and returned from the setup method.

See here: https://github.com/learningequality/kolibri/blob/release-v0.16.x/kolibri/plugins/media_player/assets/src/views/MediaPlayerIndex.vue#L207

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have made the necessary changes; please check it once.

Copy link
Member

@rtibbles rtibbles left a comment

Choose a reason for hiding this comment

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

This doesn't cause any errors in manual testing, and is the change I expect.

@rtibbles rtibbles merged commit a18fffb into learningequality:release-v0.16.x Oct 9, 2023
nucleogenesis pushed a commit to nucleogenesis/kolibri that referenced this pull request Oct 11, 2023
… Media Player plugin (learningequality#11365)

Replace KResponsiveWindow mixin by useKResponsiveWindow composable - Media Player plugin
AllanOXDi pushed a commit to AllanOXDi/kolibri that referenced this pull request Nov 3, 2023
… Media Player plugin (learningequality#11365)

Replace KResponsiveWindow mixin by useKResponsiveWindow composable - Media Player plugin
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace KResponsiveWindow mixin by useKResponsiveWindow composable - Media Player plugin
2 participants