align naming

This commit is contained in:
Mads Rasmussen
2024-05-16 10:28:08 +02:00
parent 3a7335ff0a
commit 6beffad288
5 changed files with 5 additions and 5 deletions

View File

@@ -78,7 +78,7 @@ export abstract class UmbTreeRepositoryBase<
* @return {*}
* @memberof UmbTreeRepositoryBase
*/
async requestRootTreeItems(args: TreeRootItemsRequestArgsType) {
async requestTreeRootItems(args: TreeRootItemsRequestArgsType) {
await this._init;
const { data, error: _error } = await this._treeSource.getRootItems(args);

View File

@@ -38,7 +38,7 @@ export interface UmbTreeRepository<
* @param {UmbTreeRootItemsRequestArgs} args
* @memberof UmbTreeRepository
*/
requestRootTreeItems: (args: TreeRootItemsRequestArgsType) => Promise<{
requestTreeRootItems: (args: TreeRootItemsRequestArgsType) => Promise<{
data?: UmbPagedModel<TreeItemType>;
error?: ProblemDetails;
asObservable?: () => Observable<TreeItemType[]>;

View File

@@ -177,7 +177,7 @@ export class UmbDefaultTreeContext<TreeItemType extends UmbTreeItemModel, TreeRo
skip,
take,
})
: await this.#repository!.requestRootTreeItems({
: await this.#repository!.requestTreeRootItems({
skip,
take,
});

View File

@@ -15,7 +15,7 @@ export class UmbCreateDocumentCollectionActionElement extends UmbLitElement {
//TODO: Should we use the tree repository or make a collection repository?
//TODO: And how would we get all the member types?
//TODO: This only works because member types can't have folders.
const { data } = await this.#memberTypeTreeRepository.requestRootTreeItems({});
const { data } = await this.#memberTypeTreeRepository.requestTreeRootItems({});
if (!data) return;
this._options = data.items.map((item) => {

View File

@@ -31,7 +31,7 @@ export class UmbMemberCollectionHeaderElement extends UmbLitElement {
}
async #requestContentTypes() {
const { data } = await this.#contentTypeRepository.requestRootTreeItems({});
const { data } = await this.#contentTypeRepository.requestTreeRootItems({});
if (data) {
this._contentTypes = data.items.map((item) => ({