Icon improvements:

- Put the default resolver back, otherwise default icons can't be found
This commit is contained in:
nathan 2022-08-22 14:58:55 -06:00
parent 7876fbf710
commit 018dd11bd2

View File

@ -9,6 +9,15 @@ import {egw} from "../../jsapi/egw_global";
* Here is the common overrides and customisations for Shoelace
*/
/**
* Make shoelace icons available
*/
registerIconLibrary('default', {
resolver: name =>
{
return typeof egw !== "undefined" ? `${egw.webserverUrl}/node_modules/@shoelace-style/shoelace/dist/assets/icons/${name}.svg` : ''
},
});
/**
* Register egw images as an icon library