* [bug#50362,start,0.2h,2.8h] add copy button.

This commit is contained in:
tianshujie
2024-05-30 11:28:44 +08:00
parent e6fe216f34
commit a143d184b8
+11 -1
View File
@@ -11,7 +11,7 @@ declare(strict_types=1);
namespace zin;
jsVar('rootID', $root->id);
jsVar('viewType', $viewType);
jsVar('+viewType', $viewType);
$manageTitle = $lang->tree->manageChild;
if(strpos($viewType, 'doc') !== false)
@@ -235,6 +235,16 @@ div
(
setClass('pb-4'),
set::title($manageTitle),
$viewType == 'story' && $allProduct && $canBeChanged ? to::headingActions
(
btn
(
set::size('sm'),
set::type('primary'),
set::url('javascript:toggleCopy()'),
$lang->tree->syncFromProduct
)
) : null,
div
(
setClass('flex'),