Closed GoOz closed 7 years ago
So far so good! But I guess we'll amend this PR with the logic bits?
This is not for merging purpose right now, just to be reviewed in advance 😛 In case i didn't take the right path from the beginning.
I added some functions, but faced an error on GET /sharings/:id
with :id
a sharing's id found in the permissions sets that is returned by GET /permissions/doctype/io.cozy.files/sharedWithOthers
... I asked @Ljinod for a tips, and we will added the information in the FAQ: Great! I know that my resource is shared. Can I have more information regarding the sharing?.
@GoOz @y-lohse, @goldoraf I think I'm done with this. Could you review my changes?
Note: all logic must go into redux-cozy-api
, but for now, I write it right in the sharing/index.js
lib file. As you can see if you run the code, there is a wrong behavior in the sharing modal as if you switch tab before fetching all needed data, it will go back to the first tab. That is not related to this feature, so I let it as this. But we should consider to refactor it later.
Add the view that displays the access list
@TODO get the access list from the API.