Added copy button and relevant logic
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 18s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 18s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 16s
Laravel Pint / pint (pull_request) Successful in 3m7s
Laravel Larastan / larastan (pull_request) Failing after 5m27s

This commit is contained in:
dhanabalan
2026-11-25 12:18:14 +05:30
parent 7b236460c1
commit 05b34cbb90
2 changed files with 45 additions and 13 deletions

View File

@@ -57,15 +57,9 @@ class SharedEditor extends Page
}
}
public function clearContent(): void
public function copyContent(): void
{
SharedClipBoard::where('id', 1)->update([
'content' => '',
]);
$this->content = '';
$this->lastSyncedContent = '';
$this->dispatch('copy-to-clipboard', content: $this->content);
}
public static function canAccess(): bool