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
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user