-
Notifications
You must be signed in to change notification settings - Fork 159
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
feat: show modal when creating links in embed mode #10076
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
202876a
to
fa0cf34
Compare
67bb0fe
to
c7c6e85
Compare
95ced20
to
161c04d
Compare
Adds a modal that pops up after clicking "Share links" in embed mode where the user can specify the props of the link(s) they want to create: password, role, name. It also changes the behavior so there will be always new links created instead of re-using existing links.
161c04d
to
62b68ed
Compare
Kudos, SonarCloud Quality Gate passed! |
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.
Nice work!
if (failed.length) { | ||
failed.forEach((error) => { | ||
console.error(error) | ||
store.dispatch('showErrorMessage', { |
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.
a bit weird to have a generic, pluralized message for each and every error individually. 😅
Description
Adds a modal that pops up after clicking "Share links" in embed mode where the user can specify the props of the link(s) they want to create: password, role, name. It also changes the behavior so there will be always new links created instead of re-using existing links.
A few things had to be refactored course of this.
LinkRoleDropdown
(refactor: move link role dropdown to a re-usable component #10079) (actually this was not needed in the end, but doesn't hurt)getExpirationRules
(refactor: move link expiration rules to a helper method #10080)files_sharing.public.password.enforced_for
(refactor: create composable for password enforcement capability #10081)Minor other changes:
Create a new folder
toNew folder
OcRadio
component, added types for themodelValue
Related Issue
How to test
embed=true
Screenshot
Types of changes