-
Notifications
You must be signed in to change notification settings - Fork 54
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
enable opening a single shared file #1242
Conversation
7f0527c
to
9e87dd9
Compare
9e87dd9
to
4fe72e2
Compare
@vanpertsch there's some lint issues still in my commit. Sorry for that - did not clean it up. Could you fix them? |
dc8006f
to
035136d
Compare
7dbc84c
to
6043727
Compare
@max-nextcloud would you be able to take over and finish this PR ? |
@PVince81 I won't have time for it this week - but i can get to it next week. |
6043727
to
28f58dc
Compare
I rebased it for now. I'll look into adding a test tomorrow. Other than that i think it should be done. |
28f58dc
to
adbea59
Compare
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.
Code looks good, but not sure why we need to introduce the possibility to render the viewer in another element?
e.g. using viewer for single-files public shares. |
@max-nextcloud if you're done adding the test please set the label to "3 - To review" and ask for another review |
adbea59
to
9b3bdc4
Compare
/compile amend / |
@max-nextcloud is this ready for re-review ? |
dd60339
to
013be7f
Compare
013be7f
to
5a4ceca
Compare
Yes. As i said in #1242 (comment) - i'm not sure how best to resolve the dependency between this change and the one in |
Let's merge this one then server |
@skjnldsv is testing needed? I could do with
|
@max-nextcloud server PR nextcloud/server#33347 got merged |
Signed-off-by: Vanessa Pertsch <[email protected]>
oh my... should have made it more clear it depends on this... Rebasing this now so we can get it in fast. |
Signed-off-by: Max <[email protected]>
Signed-off-by: Vanessa Pertsch <[email protected]>
Signed-off-by: Max <[email protected]>
This enables scrolling single file share views so the download button below an image becomes visible. Signed-off-by: Max <[email protected]>
5a4ceca
to
9056332
Compare
/compile amend . |
/compile amend / |
Signed-off-by: Max <[email protected]> Signed-off-by: nextcloud-command <[email protected]>
9056332
to
19921a9
Compare
// only change zoomRatio when multiple files are in the fileList. Disable for single shared files | ||
if (this.fileList.length > 1) { | ||
this.zoomRatio = newZoomRatio | ||
} |
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.
@max-nextcloud We can load a single file without being inline.
This is a regression
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.
Good point. I'll fix it.
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.
So i guess a good criterion will be if el
is set.
Zoom should only be disabled on single shared files. See #1242 (review) Signed-off-by: Max <[email protected]>
Zoom should only be disabled on single shared files. See #1242 (review) Signed-off-by: Max <[email protected]> Signed-off-by: nextcloud-command <[email protected]>
Signed-off-by: Vanessa Pertsch [email protected]
First steps towards #644 together with nextcloud/server#33347