add missing tree method to data source
This commit is contained in:
@@ -14,7 +14,7 @@ import { RepositoryTreeDataSource } from 'libs/repository/repository-tree-data-s
|
||||
* @implements {RepositoryTreeDataSource}
|
||||
*/
|
||||
export class UmbStylesheetTreeServerDataSource
|
||||
implements RepositoryTreeDataSource<PagedFileSystemTreeItemPresentationModel>
|
||||
implements RepositoryTreeDataSource<PagedFileSystemTreeItemPresentationModel, FileSystemTreeItemPresentationModel>
|
||||
{
|
||||
#host: UmbControllerHostInterface;
|
||||
|
||||
@@ -50,4 +50,19 @@ export class UmbStylesheetTreeServerDataSource
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetches stylesheet items from the server
|
||||
* @param {(string | undefined)} path
|
||||
* @return {*}
|
||||
* @memberof UmbStylesheetTreeServerDataSource
|
||||
*/
|
||||
async getItems(path: Array<string>) {
|
||||
return tryExecuteAndNotify(
|
||||
this.#host,
|
||||
StylesheetResource.getTreeStylesheetItem({
|
||||
path,
|
||||
})
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user