-
Notifications
You must be signed in to change notification settings - Fork 16
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
Unify FilesList and SharesList #1219
Conversation
Your Render PR Server URL is https://files-ui-stage-pr-1219.onrender.com. Follow its progress at https://dashboard.render.com/static/srv-c3eta8qp7h3h6a5f1nh0. |
Your Render PR Server URL is https://storage-ui-stage-pr-1219.onrender.com. Follow its progress at https://dashboard.render.com/static/srv-c3eta9ap7h3h6a5f1o1g. |
@@ -301,7 +304,8 @@ const FilesList = () => { | |||
moduleRootPath, | |||
isSearch, | |||
withSurvey, | |||
bucket | |||
bucket, | |||
accessRole |
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.
Don't we have the accessRole
inside bucket
(BucketKeyPermission) now ?
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.
Totally, I merged dev and removed this prop
switch(accessRole) { | ||
case "owner": | ||
filteredList = [ | ||
"delete", |
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.
could we have something like this
const readerPermissions = ["info", "download"]
const writerPermissions = [...readerPermissions, "move", ....]
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.
Love the idea, check 952b03e and let me know if that's better.
] | ||
if (!bulkOperations) return | ||
|
||
let filteredList: FileOperation[] = [ |
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.
maybe fileOperations
a better name ?
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.
agreed, changed.
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.
Working great! 💯
Left somee comments
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.
Looking great ! 👍
closes #1218