-
Notifications
You must be signed in to change notification settings - Fork 65
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
Add Only Office Toolbar #2324
Merged
Merged
Add Only Office Toolbar #2324
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JF-Cozy
force-pushed
the
feat/ooToolbar
branch
8 times, most recently
from
May 4, 2021 14:17
8ffe1be
to
ef7eb8a
Compare
Crash--
reviewed
May 4, 2021
Crash--
reviewed
May 4, 2021
Crash--
reviewed
May 4, 2021
Crash--
reviewed
May 4, 2021
Crash--
reviewed
May 4, 2021
Crash--
reviewed
May 4, 2021
Crash--
reviewed
May 4, 2021
Crash--
reviewed
May 4, 2021
Crash--
reviewed
May 4, 2021
src/drive/web/modules/views/OnlyOffice/Toolbar/useFileWithPath.jsx
Outdated
Show resolved
Hide resolved
Crash--
reviewed
May 4, 2021
Crash--
reviewed
May 4, 2021
Crash--
reviewed
May 4, 2021
Crash--
reviewed
May 4, 2021
Crash--
reviewed
May 4, 2021
Crash--
reviewed
May 4, 2021
JF-Cozy
force-pushed
the
feat/ooToolbar
branch
2 times, most recently
from
May 5, 2021 13:06
47b682c
to
6646e81
Compare
JF-Cozy
force-pushed
the
feat/ooToolbar
branch
3 times, most recently
from
May 5, 2021 13:22
85f6047
to
258cbbf
Compare
Needed because of two things about useFilesQueryWithPath - it doesn't allow passing only one file as argument - it use a getByIds() query, not allowed by the stack in public view
Useful to avoid passing props throw children. isReadOnly is set only after getting configuration from the stack fileId and isPublic are get from the router All are used in the Toolbar
and refactor config creation in useConfig
Crash--
approved these changes
May 6, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comme ça tu pourras merger directement après le makeStyle() ;)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Ajout de la toolbar pour only office en partie privée + partie publique en partage par lien.
Le partage cozy à cozy n'est pas concerné ici (pour une prochaine PR), et n'est pas nécessairement fonctionnel. Comme il y a un feature flag et que OnlyOffice doit être activé sur le serveur, ce n'est pas un souci.
Au lieu de passer les props
fileId
etisReadOnly
d'enfant à enfant j'ai plutôt utilisé un contexte.Desktop
Mobile
Public Desktop
Public Mobile