[arvados-workbench2] updated: 2.6.0-23-gb49ca531
git repository hosting
git at public.arvados.org
Wed May 24 13:38:44 UTC 2023
Summary of changes:
src/store/collections/collection-partial-copy-actions.ts | 2 +-
src/store/tree-picker/tree-picker-actions.ts | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
via b49ca531d77614d3029b4d34c39df3e2938c39cf (commit)
from cfe49be676877567de9704e8d7968d611fa77fc9 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit b49ca531d77614d3029b4d34c39df3e2938c39cf
Author: Stephen Smith <stephen at curii.com>
Date: Wed May 24 09:38:19 2023 -0400
20031: Avoid expanding pre-selected picker tree item until loaded
Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen at curii.com>
diff --git a/src/store/collections/collection-partial-copy-actions.ts b/src/store/collections/collection-partial-copy-actions.ts
index 8e8dbdbb..7897efc4 100644
--- a/src/store/collections/collection-partial-copy-actions.ts
+++ b/src/store/collections/collection-partial-copy-actions.ts
@@ -4,7 +4,7 @@
import { Dispatch } from 'redux';
import { RootState } from 'store/store';
-import { FormErrors, initialize, startSubmit, stopSubmit } from 'redux-form';
+import { initialize, startSubmit, stopSubmit } from 'redux-form';
import { resetPickerProjectTree } from 'store/project-tree-picker/project-tree-picker-actions';
import { dialogActions } from 'store/dialog/dialog-actions';
import { ServiceRepository } from 'services/services';
diff --git a/src/store/tree-picker/tree-picker-actions.ts b/src/store/tree-picker/tree-picker-actions.ts
index bf40394c..ad657f14 100644
--- a/src/store/tree-picker/tree-picker-actions.ts
+++ b/src/store/tree-picker/tree-picker-actions.ts
@@ -311,7 +311,6 @@ export const loadInitialValue = (initialValue: string, pickerId: string) =>
pickerId: pickerTreeId,
subtree: tree
}));
- dispatch(treePickerActions.EXPAND_TREE_PICKER_NODES({ ids: [pickerTreeRootUuid], pickerId: pickerTreeId }));
dispatch(treePickerActions.ACTIVATE_TREE_PICKER_NODE({ id: initialValue, pickerId: pickerTreeId }));
dispatch(treePickerSearchActions.REFRESH_TREE_PICKER({ pickerId: pickerTreeId }));
}
@@ -561,7 +560,7 @@ export const createInitialLocationTree = (data: Array<GroupResource | Collection
value: item,
active: false,
selected: false,
- expanded: item.uuid !== tailUuid,
+ expanded: false,
status: item.uuid !== tailUuid ? TreeNodeStatus.LOADED : TreeNodeStatus.INITIAL,
})(tree), createTree<GroupResource | CollectionResource>());
};
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list