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

Add Only Office Toolbar #2324

Merged
merged 7 commits into from
May 6, 2021
Merged

Add Only Office Toolbar #2324

merged 7 commits into from
May 6, 2021

Conversation

JF-Cozy
Copy link
Contributor

@JF-Cozy JF-Cozy commented May 3, 2021

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 et isReadOnly d'enfant à enfant j'ai plutôt utilisé un contexte.

Desktop
image

Mobile
image

Public Desktop
image

Public Mobile
image

@JF-Cozy JF-Cozy force-pushed the feat/ooToolbar branch 8 times, most recently from 8ffe1be to ef7eb8a Compare May 4, 2021 14:17
@JF-Cozy JF-Cozy marked this pull request as ready for review May 4, 2021 14:23
@JF-Cozy JF-Cozy requested review from Crash-- and ptbrowne as code owners May 4, 2021 14:23
@JF-Cozy JF-Cozy requested a review from flohhhh May 4, 2021 14:24
@JF-Cozy JF-Cozy force-pushed the feat/ooToolbar branch 2 times, most recently from 47b682c to 6646e81 Compare May 5, 2021 13:06
@JF-Cozy JF-Cozy force-pushed the feat/ooToolbar branch 3 times, most recently from 85f6047 to 258cbbf Compare May 5, 2021 13:22
@JF-Cozy JF-Cozy requested a review from Crash-- May 5, 2021 13:23
JF-Cozy added 5 commits May 5, 2021 15:54
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
Copy link
Contributor

@Crash-- Crash-- left a 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() ;)

@JF-Cozy JF-Cozy merged commit 0cdb95b into master May 6, 2021
@JF-Cozy JF-Cozy deleted the feat/ooToolbar branch May 6, 2021 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants