fix: make current user store async so storybook works

This commit is contained in:
Jacob Overgaard
2024-05-30 13:55:04 +02:00
parent 3a7f93c3d8
commit 82029b71e1
2 changed files with 3 additions and 2 deletions

View File

@@ -105,4 +105,6 @@ export class UmbCurrentUserStore extends UmbContextBase<UmbCurrentUserStore> {
}
}
export default UmbCurrentUserStore;
export const UMB_CURRENT_USER_STORE_CONTEXT = new UmbContextToken<UmbCurrentUserStore>('UmbCurrentUserStore');

View File

@@ -1,4 +1,3 @@
import { UmbCurrentUserStore } from './current-user.store.js';
import type { ManifestRepository, ManifestStore, ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
export const UMB_CURRENT_USER_REPOSITORY_ALIAS = 'Umb.Repository.CurrentUser';
@@ -14,7 +13,7 @@ const store: ManifestStore = {
type: 'store',
alias: 'Umb.Store.CurrentUser',
name: 'Current User Store',
api: UmbCurrentUserStore,
api: () => import('./current-user.store.js'),
};
export const manifests: Array<ManifestTypes> = [repository, store];