render history icons

This commit is contained in:
daria 2025-08-29 11:35:30 +03:00
parent a7190e1263
commit 5a269d3ecf
No known key found for this signature in database
GPG Key ID: 3B75240E6B2F2701
3 changed files with 13 additions and 2 deletions

View File

@ -32,6 +32,9 @@
&.cp-history-init {
padding: 0;
height: 32px;
svg {
animation: spin 10s linear infinite;
}
}
.cp-toolbar-history-timeline {
@ -62,6 +65,11 @@
align-self: baseline;
margin-right: 5px;
.cp-history-actions-first {
.cp-history-create-snapshot {
svg {
margin: 0;
}
}
margin-right: @fill-width;
}
button {

View File

@ -4338,7 +4338,7 @@ define([
if (!readOnly) {
buttons.push({
className: 'primary',
iconClass: 'camera',
iconClass: 'snapshot',
name: Messages.snapshots_new,
onClick: function () {
var val = $input.val();

View File

@ -10,10 +10,11 @@ define([
'/customize/messages.js',
'/components/nthen/index.js',
'/common/common-icons.js',
'/customize/fonts/lucide.js',
//'/components/chainpad-json-validator/json-ot.js',
'/components/chainpad/chainpad.dist.js',
], function ($, UI, Util, h, Messages, nThen, Icons, ChainPad /* JsonOT */) {
], function ($, UI, Util, h, Messages, nThen, Icons, Lucide, ChainPad /* JsonOT */) {
//var ChainPad = window.ChainPad;
var History = {};
@ -432,6 +433,7 @@ define([
// Create the history toolbar
var display = function () {
setTimeout(()=> Lucide.createIcons());
$hist.html('');
$hist.removeClass('cp-history-init');
@ -509,6 +511,7 @@ define([
var snapshot = h('button', {
title: Messages.snapshots_new,
class: 'cp-history-create-snapshot',
}, [
Icons.get('snapshot')
]);