v1.0.170: simple text buttons — активировать / удалить
This commit is contained in:
+2
-2
@@ -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="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>' : '')
|
||||
+ (!v.is_active ? '<button class="btn" onclick="activatePrompt(\'' + v.id + '\')" style="font-size:11px;height:22px;padding:0 8px;margin-left:4px;">активировать</button>' : '')
|
||||
+ (!v.is_active ? '<button class="btn" onclick="deletePrompt(\'' + v.id + '\')" style="font-size:11px;height:22px;padding:0 8px;margin-left:2px;color:var(--destructive);">удалить</button>' : '')
|
||||
+ '</div>';
|
||||
}).join('');
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user