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
artonge
left a comment
There was a problem hiding this comment.
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 <vanessa.pertsch@posteo.de>
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 <max@nextcloud.com>
Signed-off-by: Vanessa Pertsch <vanessa.pertsch@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
This enables scrolling single file share views so the download button below an image becomes visible. Signed-off-by: Max <max@nextcloud.com>
5a4ceca to
9056332
Compare
|
/compile amend . |
|
/compile amend / |
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.
@max-nextcloud We can load a single file without being inline.
This is a regression
There was a problem hiding this comment.
Good point. I'll fix it.
There was a problem hiding this comment.
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 <max@nextcloud.com>
Zoom should only be disabled on single shared files. See #1242 (review) Signed-off-by: Max <max@nextcloud.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Signed-off-by: Vanessa Pertsch vanessa.pertsch@posteo.de
First steps towards #644 together with nextcloud/server#33347