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

delete within viewer, try #2 #619

Merged
merged 4 commits into from Oct 15, 2020
Merged

delete within viewer, try #2 #619

merged 4 commits into from Oct 15, 2020

Conversation

jakobroehrl
Copy link
Contributor

Signed-off-by: Jakob Röhrl jakob.roehrl@web.de

@jakobroehrl jakobroehrl self-assigned this Sep 25, 2020
@jakobroehrl jakobroehrl added 2. developing Work in progress enhancement New feature or request labels Sep 25, 2020
@jakobroehrl jakobroehrl changed the title delete within viewer delete within viewer, try #2 Sep 25, 2020
@skjnldsv
Copy link
Member

skjnldsv commented Oct 1, 2020

@jakobroehrl if you're stuck on the tests, do you want to find some time and do a call so I can fix them with you so you understand them a bit better?

@nickvergessen
Copy link
Member

Once in, would be nice to backport this to 20 😁

jakobroehrl and others added 3 commits October 15, 2020 14:03
Signed-off-by: Jakob Röhrl <jakob.roehrl@web.de>
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
@skjnldsv skjnldsv added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Oct 15, 2020
@skjnldsv
Copy link
Member

/compile amend /

2 similar comments
@skjnldsv
Copy link
Member

/compile amend /

@skjnldsv
Copy link
Member

/compile amend /

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
@skjnldsv skjnldsv added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Oct 15, 2020
@skjnldsv skjnldsv merged commit 401084f into master Oct 15, 2020
@skjnldsv skjnldsv deleted the enh/delete2 branch October 15, 2020 13:21
@rakekniven
Copy link
Member

Will this be backported to NC20?

@skjnldsv
Copy link
Member

Hey, no. Viewer is too tightly bound with server

@jakobroehrl
Copy link
Contributor Author

@skjnldsv
Tried it in NC21: Deleting is working on all files expect in the photo app, there is no delete icon.

@skjnldsv
Copy link
Member

@jakobroehrl I guess we are not requesting the permissions in photos, so viewer is not aware of them?

@jakobroehrl
Copy link
Contributor Author

@skjnldsv This could be true, could I do something to get this running?

@szaimen
Copy link
Contributor

szaimen commented Feb 18, 2021

I guess the filesystem permission is missing for that?
You could try to add this to photos info.xml
https://github.com/nextcloud/maps/blob/master/appinfo/info.xml#L56-L58

@szaimen
Copy link
Contributor

szaimen commented Feb 18, 2021

But this will also disable the possibility to limit the app to specific groups

@skjnldsv
Copy link
Member

I guess the filesystem permission is missing for that?
You could try to add this to photos info.xml
https://github.com/nextcloud/maps/blob/master/appinfo/info.xml#L56-L58

No, it needs to be added there iirc: https://github.com/nextcloud/photos/blob/master/src/services/DavRequest.js
That should works for tags/timeline :)
For albums, there is https://github.com/nextcloud/photos/blob/48a1dab129e3ef2e50a5c3be88d4cc2073e88c54/lib/Controller/AlbumsController.php#L107-L116

@jakobroehrl
Copy link
Contributor Author

No, it needs to be added there iirc: https://github.com/nextcloud/photos/blob/master/src/services/DavRequest.js
That should works for tags/timeline :)
For albums, there is https://github.com/nextcloud/photos/blob/48a1dab129e3ef2e50a5c3be88d4cc2073e88c54/lib/Controller/AlbumsController.php#L107-L116

@skjnldsv How to do this exactly? What do I have to add above?

@skjnldsv
Copy link
Member

skjnldsv commented Mar 2, 2021

You need to add the same properties as the webdav returns

@archont00
Copy link

Has this been released in NC21 or is it waiting for some further tests?

@rakekniven
Copy link
Member

Not IIRC.

@skjnldsv
Copy link
Member

skjnldsv commented Jun 6, 2021

Yes it's part of 21

@rakekniven
Copy link
Member

In photos I cannot delete any item while viewing. My NC is at v21.0.2

@skjnldsv
Copy link
Member

skjnldsv commented Jun 6, 2021

In photos I cannot delete any item while viewing. My NC is at v21.0.2

this is viewer, photos needs a fix yes

@archont00
Copy link

Ah, good point. NC 21 File/Viewer indeed has a "Delete" option in menu.

Yet, the DEL key does not work :-(

@szaimen
Copy link
Contributor

szaimen commented Jun 6, 2021

This is tracked here: #897

@jakobroehrl
Copy link
Contributor Author

No, it needs to be added there iirc: https://github.com/nextcloud/photos/blob/master/src/services/DavRequest.js

@skjnldsv How to define the permissions? What do I have to add exactly into props?
Searched for permission but found nothing.

@DiegoRenner
Copy link

I'm on Nextcloud Hub II (23.0.4). Should the delete button be available for me in the viewer? Just not sure if something in my settings is wrong or not.

@skjnldsv
Copy link
Member

@skjnldsv How to define the permissions? What do I have to add exactly into props? Searched for permission but found nothing.

@jakobroehrl

<oc:permissions />

@jakobroehrl
Copy link
Contributor Author

This implementation was never finished.

@Sofahamster
Copy link

What's the status of this PR? It says merged, but I can't find a way to delete photos from within the gallery in NC 24.

@szaimen
Copy link
Contributor

szaimen commented Sep 26, 2022

The feature is available within the files app.

@nextcloud nextcloud locked as too heated and limited conversation to collaborators Sep 26, 2022
@szaimen
Copy link
Contributor

szaimen commented Sep 26, 2022

It will be available in the photos app with NC25, IIRC

@rakekniven
Copy link
Member

What's the status of this PR? It says merged, but I can't find a way to delete photos from within the gallery in NC 24.

You made the same mistake like me: The viewer component is used in Files App to view images. This is not related to the viewer component in photos app and therefor no delete button for us. That was my understanding.

@skjnldsv
Copy link
Member

This is not related to the viewer component in photos app and therefor no delete button for us

image
On Photos we have it now

@rakekniven
Copy link
Member

On Photos we have it now

NC25 only?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
4. to release Ready to be released and/or waiting for tests to finish enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants