filter legacy icons
This commit is contained in:
@@ -42,6 +42,7 @@ const collectDictionaryIcons = async () => {
|
||||
|
||||
const icon = {
|
||||
name: iconDef.name,
|
||||
legacy: iconDef.legacy,
|
||||
fileName: iconFileName,
|
||||
svg,
|
||||
output: `${iconsOutputDirectory}/${iconFileName}.js`,
|
||||
@@ -81,6 +82,7 @@ const collectDiskIcons = async (icons) => {
|
||||
|
||||
const icon = {
|
||||
name: iconName,
|
||||
legacy: true,
|
||||
fileName: iconFileName,
|
||||
svg,
|
||||
output: `${iconsOutputDirectory}/${iconFileName}.js`,
|
||||
@@ -115,6 +117,7 @@ const generateJSON = (icons) => {
|
||||
const iconDescriptors = icons.map((icon) => {
|
||||
return {
|
||||
name: icon.name,
|
||||
legacy: icon.legacy,
|
||||
path: `./icons/${icon.fileName}.js`,
|
||||
};
|
||||
});
|
||||
|
||||
@@ -12,7 +12,7 @@ import { UmbIconPickerModalData, UmbIconPickerModalValue, UmbModalBaseElement }
|
||||
export class UmbIconPickerModalElement extends UmbModalBaseElement<UmbIconPickerModalData, UmbIconPickerModalValue> {
|
||||
|
||||
|
||||
private _iconList = icons.map((icon) => icon);
|
||||
private _iconList = icons.filter((icon) => !icon.legacy);
|
||||
|
||||
@state()
|
||||
private _iconListFiltered: Array<(typeof icons)[0]> = [];
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user