-
Notifications
You must be signed in to change notification settings - Fork 7
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
base: dev
Are you sure you want to change the base?
Conversation
rodcoffani
commented
Mar 14, 2025
- 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
packages/web-app-files/src/components/SideBar/Shares/FileLinks.vue
Outdated
Show resolved
Hide resolved
packages/web-app-files/src/components/SideBar/Shares/FileLinks.vue
Outdated
Show resolved
Hide resolved
- 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
f09e172
to
0fe0b30
Compare
the capability store still needs to be updated in the backend |
chore(deps): update babel monorepo to v7.26.9
packages/web-app-files/src/components/SideBar/Shares/FileLinks.vue
Outdated
Show resolved
Hide resolved
packages/web-app-files/src/components/SideBar/Shares/Links/EditDropdown.vue
Outdated
Show resolved
Hide resolved
packages/web-app-files/src/components/SideBar/Shares/Links/EditDropdown.vue
Outdated
Show resolved
Hide resolved
@@ -40,7 +42,7 @@ export const useFileActionsCreateLink = ({ | |||
}: { | |||
result: PromiseSettledResult<LinkShare>[] | |||
password?: string | |||
options?: { copyPassword?: boolean } | |||
options?: { isRW?: boolean; isFolder?: boolean; copyPassword?: boolean } |
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.
Isn't this info available in result
? If at least one is folder and rw, then show the warning.
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.
The isRW
can be replaced by result[0].value.type === 'edit'
, but there is no information about the file type in the result
.
888f4ef
to
a598d92
Compare