v1.0.170: clear activate/delete buttons with lucide icons

This commit is contained in:
2026-06-24 13:43:37 +04:00
parent 15bd4ad322
commit c21a50cd14
+2 -2
View File
@@ -656,8 +656,8 @@ function loadHistory(role) {
var style = v.is_active ? 'font-weight:600;' : '';
return '<div style="display:flex;align-items:center;padding:4px 0;border-bottom:1px solid var(--brand-gray);font-size:11px;' + style + '">'
+ '<span style="flex:1;">' + isActive + escHtml(v.name) + ' <span style="color:var(--muted);">' + fmtDate(v.created_at) + '</span></span>'
+ (!v.is_active ? '<button class="arrow-btn" onclick="activatePrompt(\'' + v.id + '\')" title="Активировать" style="font-size:14px;">←</button>' : '')
+ (!v.is_active ? '<button class="arrow-btn" onclick="deletePrompt(\'' + v.id + '\')" title="Удалить" style="font-size:14px;">✕</button>' : '')
+ (!v.is_active ? '<button class="btn" onclick="activatePrompt(\'' + v.id + '\')" title="Сделать активным" style="font-size:11px;height:22px;padding:0 6px;margin-left:4px;"><i data-lucide="check-circle" style="width:12px;height:12px;"></i> активировать</button>' : '')
+ (!v.is_active ? '<button class="btn" onclick="deletePrompt(\'' + v.id + '\')" title="Удалить версию" style="font-size:11px;height:22px;padding:0 6px;margin-left:2px;color:var(--destructive);border-color:var(--destructive);"><i data-lucide="trash-2" style="width:12px;height:12px;"></i></button>' : '')
+ '</div>';
}).join('');
})