feat(admin): 重复批量投递warning提供复制run_id按钮(复用copyToClipboard)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user