Tree item abort (#6757)

* adding abortSignal back to composition load
* suppress AbortError console.errors from couch, delay requests for test to trigger abort
---------

Co-authored-by: John Hill <john.c.hill@nasa.gov>
Co-authored-by: Andrew Henry <akhenry@gmail.com>
This commit is contained in:
Jamie V
2023-07-14 10:49:10 -07:00
committed by GitHub
parent cde8fbbb0d
commit 92329b3d8e
8 changed files with 86 additions and 9 deletions

View File

@@ -326,12 +326,13 @@ export default {
},
async openTreeItem(parentItem) {
const parentPath = parentItem.navigationPath;
const abortSignal = this.startItemLoad(parentPath);
this.startItemLoad(parentPath);
// pass in abort signal when functional
const childrenItems = await this.loadAndBuildTreeItemsFor(
parentItem.object.identifier,
parentItem.objectPath
parentItem.objectPath,
abortSignal
);
const parentIndex = this.treeItems.indexOf(parentItem);

View File

@@ -44,6 +44,7 @@
<view-control
ref="action"
class="c-tree__item__view-control"
:domain-object="node.object"
:value="isOpen || isLoading"
:enabled="!activeSearch && hasComposition"
@input="itemAction()"