add essential icon registry

This commit is contained in:
Mads Rasmussen
2022-05-25 16:14:51 +02:00
parent a2c4b773a7
commit 27dcf78c96

View File

@@ -1,4 +1,4 @@
import '@umbraco-ui/uui';
import { UUIIconRegistryEssential } from '@umbraco-ui/uui';
import '@umbraco-ui/uui-css/dist/uui-css.css';
// TODO: lazy load these
@@ -48,6 +48,8 @@ export class UmbApp extends UmbContextProviderMixin(LitElement) {
}
`;
private _iconRegistry: UUIIconRegistryEssential = new UUIIconRegistryEssential();
private _isInstalled = false;
private _view?: HTMLElement;
@@ -57,10 +59,8 @@ export class UmbApp extends UmbContextProviderMixin(LitElement) {
constructor() {
super();
this.addEventListener(umbRouterBeforeEnterEventType, this._onBeforeEnter);
}
this._iconRegistry.attach(this);
connectedCallback(): void {
super.connectedCallback();
const { extensionRegistry } = window.Umbraco;
this.provideContext('umbExtensionRegistry', window.Umbraco.extensionRegistry);