Skip to content

feat: warning about folders public links #178

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

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from

Conversation

rodcoffani
Copy link

  • warning (text or modal) triggered when creating an Editor link for a folder
  • add a maxDate property on oc-datepicker component
  • set default expiration dates for Editor links on folders

- folders expiration date defined in capability store
- if the expiration is set for more than the maximum defined, is updated
- removes the option to unset expiration dates for RW folders
- only for folders with RW permissions
- modal or div, based on if it was created or updated
- alert message defined in config store by language
- check if message exists before showing
@rodcoffani rodcoffani force-pushed the feat/warning-rw-links branch from f09e172 to 0fe0b30 Compare March 24, 2025 09:47
@rodcoffani
Copy link
Author

the capability store still needs to be updated in the backend

diocas pushed a commit that referenced this pull request Mar 31, 2025
chore(deps): update babel monorepo to v7.26.9
@@ -40,7 +42,7 @@ export const useFileActionsCreateLink = ({
}: {
result: PromiseSettledResult<LinkShare>[]
password?: string
options?: { copyPassword?: boolean }
options?: { isRW?: boolean; isFolder?: boolean; copyPassword?: boolean }
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this info available in result? If at least one is folder and rw, then show the warning.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The isRW can be replaced by result[0].value.type === 'edit', but there is no information about the file type in the result.

@rodcoffani rodcoffani force-pushed the feat/warning-rw-links branch from 888f4ef to a598d92 Compare April 23, 2025 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants