Skip to content

fix: only show the link copied message after a successful clipboard write - #3763

Merged
AlexAndBear merged 1 commit into
mainfrom
fix/copy-link-toast-denied
Oct 15, 2026
Merged

AlexAndBear merged 1 commit into
mainfrom
fix/copy-link-toast-denied

Conversation

@AlexAndBear

Copy link
Copy Markdown
Member

Description

  • Link created, clipboard denied: shows "The link has been created, but it couldn't be copied to your clipboard." instead of claiming the link was copied.
  • Clipboard granted: unchanged, "The link has been copied to your clipboard."

This also covers the useCopyLink.ts part of #3712; whichever is merged second needs a rebase.

Related Issue

How Has This Been Tested?

  • test environment: unit tests (Vitest), browser tests (Playwright) against a local OpenCloud
  • test case 1: a denied clipboard shows the new message, a granted one the copied message
  • test case 2: browser: denied and granted clipboard, password links, banned password

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

@AlexAndBear
AlexAndBear force-pushed the fix/copy-link-toast-denied branch from 13f10d1 to 5d5cd5a Compare October 14, 2026 07:17
@AlexAndBear
AlexAndBear merged commit 4d094b8 into main Oct 15, 2026
27 checks passed
@AlexAndBear
AlexAndBear deleted the fix/copy-link-toast-denied branch October 15, 2026 13:56
@openclouders openclouders mentioned this pull request Oct 15, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"The link has been copied to your clipboard" is shown although the browser denied clipboard access

2 participants