add TODOs

This commit is contained in:
Ray Elliott 2020-08-14 18:58:21 +01:00
parent 913fee9577
commit 70229149a9
1 changed files with 2 additions and 1 deletions

View File

@ -36,7 +36,6 @@ registerBlockType('room-vw/iconify', {
category: 'room-vw',
supports: {
// Removes support for an HTML mode.
html: false,
align: ['left', 'center', 'right'],
},
@ -83,10 +82,12 @@ registerBlockType('room-vw/iconify', {
// TODO loading indicator
Iconify.loadIcons([iconString], () => {
// TODO if icon not found
// TODO customisations object as renderHTML second argument
setSVG(Iconify.renderHTML(iconString), newPrefix, newName);
closeModal();
});
} else {
// TODO customisations object as renderHTML second argument
setSVG(Iconify.renderHTML(iconString), newPrefix, newName);
closeModal();
}