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

feat: startPresentation URL parameter #4209

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

elzody
Copy link
Contributor

@elzody elzody commented Nov 7, 2024

Summary

TODO

  • Cypress tests?

Checklist

  • Code is properly formatted
  • Sign-off message is added to all commits
  • Documentation (manuals or wiki) has been updated or is not required

@elzody elzody added enhancement New feature or request 2. developing Work in progress labels Nov 7, 2024
@elzody elzody self-assigned this Nov 7, 2024
@elzody elzody changed the title Feat/start presentation parameter feat: startPresentation URL parameter Nov 7, 2024
@@ -45,6 +45,7 @@ const getWopiUrl = ({ fileId, title, readOnly, closeButton, revisionHistory, tar
+ (revisionHistory ? '&revisionhistory=1' : '')
+ (readOnly ? '&permission=readonly' : '')
+ (target ? '&target=' + encodeURIComponent(target) : '')
+ (Config.get('startPresentation') ? '&startPresentation=1' : '')
Copy link
Member

Choose a reason for hiding this comment

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

I think we should read into a variable once at page load and make sure to reset it to false if it was used once

Copy link
Contributor Author

@elzody elzody Nov 7, 2024

Choose a reason for hiding this comment

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

Once the page is refreshed (which, in its current state, it has to be in order to exit presentation mode) then the initial state will reset and startPresentation will not be enabled unless you again append it to the URL. I'm assuming once I implement a way to close the presentation mode this way, then it would be relevant?

@elzody elzody force-pushed the feat/start-presentation-parameter branch from 0dfd12e to 99fca49 Compare November 7, 2024 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2. developing Work in progress enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable startPresentation parameter
2 participants