feat(admin): 重复批量投递warning提供复制run_id按钮(复用copyToClipboard)

This commit is contained in:
萝卜
2026-03-17 18:32:50 +08:00
parent 7dd2e2e40a
commit e937946011
4 changed files with 74 additions and 2 deletions

View File

@@ -97,10 +97,15 @@
@php
$flashWarningLinkHref = \App\Support\BackUrl::sanitizeForLinks((string) session('warning_link_href'));
$flashWarningLinkLabel = (string) (session('warning_link_label') ?: '查看');
$flashWarningCopyText = (string) (session('warning_copy_text') ?: '');
$flashWarningCopyLabel = (string) (session('warning_copy_label') ?: '复制');
@endphp
@if($flashWarningLinkHref !== '')
<a href="{{ $flashWarningLinkHref }}" class="btn btn-secondary btn-sm" style="margin-left:8px;">{{ $flashWarningLinkLabel }}</a>
@endif
@if($flashWarningCopyText !== '')
<button type="button" class="btn btn-secondary btn-sm" style="margin-left:8px;" data-action="copy-text" data-copy-text="{{ $flashWarningCopyText }}" data-copy-label="{{ $flashWarningCopyLabel }}">{{ $flashWarningCopyLabel }}</button>
@endif
@endif
</div>
@endif