Skip to content
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

Merged
merged 1 commit into from
Dec 5, 2023

Conversation

JammingBen
Copy link
Contributor

@JammingBen JammingBen commented Nov 27, 2023

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.

Minor other changes:

  • Renamed Create a new folder to New folder
  • Improved look of OcRadio component, added types for the modelValue

Related Issue

How to test

  • enable embed mode via query param embed=true
  • select one or more resources
  • Click on "Share links" at the bottom right of your screen

Screenshot

image

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

@JammingBen JammingBen self-assigned this Nov 27, 2023
Copy link

update-docs bot commented Nov 27, 2023

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.

@JammingBen JammingBen force-pushed the improve-embed-mode-link-sharing branch 4 times, most recently from 202876a to fa0cf34 Compare November 28, 2023 15:14
@JammingBen JammingBen force-pushed the improve-embed-mode-link-sharing branch 4 times, most recently from 67bb0fe to c7c6e85 Compare November 30, 2023 10:36
@JammingBen JammingBen mentioned this pull request Nov 30, 2023
15 tasks
@JammingBen JammingBen force-pushed the improve-embed-mode-link-sharing branch 3 times, most recently from 95ced20 to 161c04d Compare November 30, 2023 12:59
@JammingBen JammingBen marked this pull request as ready for review November 30, 2023 13:34
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.
@JammingBen JammingBen force-pushed the improve-embed-mode-link-sharing branch from 161c04d to 62b68ed Compare December 1, 2023 14:35
Copy link

sonarcloud bot commented Dec 1, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

74.0% 74.0% Coverage
0.0% 0.0% Duplication

Copy link
Member

@kulmann kulmann left a 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', {
Copy link
Member

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. 😅

@kulmann kulmann merged commit 34fb49c into master Dec 5, 2023
4 checks passed
@delete-merged-branch delete-merged-branch bot deleted the improve-embed-mode-link-sharing branch December 5, 2023 10:22
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.

[web] update permissions check on share as link embed action
2 participants