add todos

This commit is contained in:
Mads Rasmussen
2023-11-22 09:37:56 +01:00
parent 319fb29d91
commit 6cbee08882
3 changed files with 9 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
import { type UmbCollectionDefaultContext, UMB_COLLECTION_CONTEXT } from '../index.js';
import { UMB_COLLECTION_CONTEXT } from '../index.js';
import { UmbCollectionContext } from '../types.js';
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
import { UmbContextConsumerController } from '@umbraco-cms/backoffice/context-api';
import type { UmbApi } from '@umbraco-cms/backoffice/extension-api';
@@ -9,7 +10,7 @@ export interface UmbCollectionAction<CollectionContextType = unknown> extends Um
execute(): Promise<void>;
}
export abstract class UmbCollectionActionBase<CollectionContextType extends UmbCollectionDefaultContext<any, any>>
export abstract class UmbCollectionActionBase<CollectionContextType extends UmbCollectionContext>
implements UmbCollectionAction<CollectionContextType>
{
host: UmbControllerHost;

View File

@@ -23,4 +23,7 @@ export class UmbCreateUserCollectionAction extends UmbCollectionActionBase<UmbUs
const modalContext = this.#modalManagerContext?.open(UMB_CREATE_USER_MODAL);
await modalContext?.onSubmit();
}
// TODO: look into why this is needed to satisfy the manifest
destroy() {}
}

View File

@@ -23,4 +23,7 @@ export class UmbInviteUserCollectionAction extends UmbCollectionActionBase<UmbUs
const modalContext = this.#modalManagerContext?.open(UMB_INVITE_USER_MODAL);
await modalContext?.onSubmit();
}
// TODO: look into why this is needed to satisfy the manifest
destroy() {}
}