align naming
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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[]>;
|
||||
|
||||
@@ -177,7 +177,7 @@ export class UmbDefaultTreeContext<TreeItemType extends UmbTreeItemModel, TreeRo
|
||||
skip,
|
||||
take,
|
||||
})
|
||||
: await this.#repository!.requestRootTreeItems({
|
||||
: await this.#repository!.requestTreeRootItems({
|
||||
skip,
|
||||
take,
|
||||
});
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
@@ -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) => ({
|
||||
|
||||
Reference in New Issue
Block a user