forked from UKSOURCE/cms.lams
Update: Dashboard-Quick Management, check loading for icon-picker
This commit is contained in:
@@ -116,7 +116,9 @@
|
||||
}
|
||||
|
||||
function _renderGrid(icons) {
|
||||
|
||||
const grid = document.getElementById('iconGrid');
|
||||
grid.style.visibility = 'hidden';
|
||||
if (!icons.length) {
|
||||
grid.innerHTML = '<p class="text-muted small">No icons found.</p>';
|
||||
return;
|
||||
@@ -133,6 +135,10 @@
|
||||
<span class="text-truncate w-100 text-center">${icon.label}</span>
|
||||
</button>
|
||||
`).join('');
|
||||
|
||||
document.fonts.ready.then(() => {
|
||||
grid.style.visibility = 'visible';
|
||||
});
|
||||
}
|
||||
|
||||
function pick(value) {
|
||||
|
||||
Reference in New Issue
Block a user