mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
render history icons
This commit is contained in:
parent
a7190e1263
commit
5a269d3ecf
@ -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 {
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -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')
|
||||
]);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user