* [task#127429] modify deleted icon of thinkstep.

This commit is contained in:
Zhangyu
2024-09-06 11:03:25 +08:00
committed by 刘刚
parent e91844c798
commit 20718bf30d
+5 -9
View File
@@ -66,21 +66,17 @@ class thinkStep extends wg
set::icon('edit'),
set::url(createLink('thinkstep', 'edit', "marketID={$marketID}&stepID={$item->id}")),
) : null,
$canDelete ? (!$item->existNotNode && empty($quotedQuestions) ? btn
$canDelete ? ((!$item->existNotNode && empty($quotedQuestions)) ? btn
(
setClass('btn ghost text-gray w-5 h-5 ml-1 ajax-submit'),
set::icon('trash'),
setData('url', createLink('thinkstep', 'delete', "marketID={$marketID}&stepID={$item->id}")),
setData('confirm', $lang->thinkstep->deleteTips[$basicType])
) : btn
) : icon
(
set(array(
'class' => 'ghost w-5 h-5 text-gray opacity-50 ml-1',
'icon' => 'trash',
'data-toggle' => 'tooltip',
'data-title' => $item->existNotNode ? $lang->thinkstep->cannotDeleteNode : $lang->thinkstep->cannotDeleteQuestion,
'data-placement' => 'bottom-start',
))
setClass('w-5 h-5 text-gray opacity-50 ml-1 text-md pl-1'),
set::title($item->existNotNode ? $lang->thinkstep->cannotDeleteNode : $lang->thinkstep->cannotDeleteQuestion),
'trash'
)) : null
)
)