| Summary: | Navigator doesn't refresh after running a command | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Mark Macdonald <mamacdon> |
| Component: | Client | Assignee: | libing wang <libingw> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | P3 | CC: | susan |
| Version: | 0.5 | ||
| Target Milestone: | 0.5 M2 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Mark Macdonald
I traced this to line 239 of explorer-table.
this.fileClient.fetchChildren(parent.ChildrenLocation).then(function(children) {
mUtil.processNavigatorParent(parent, children);
//If a key board navigator is hooked up, we need to sync up the model
if(that.getNavHandler()){
>>>>>>>>>>that._initSelModel();
}
dojo.hitch(that.myTree, that.myTree.refresh)(parent, children, forceExpand);
});
_initSelModel is not defined, so it blows out of the update.
Libing, it wasn't obvious to me what to do here....
Worth mentioning: the bug only happens when you've drilled into a subfolder. If you're at the top level of your Orion folders, the toolbar commands work fine. (In reply to comment #2) > Worth mentioning: the bug only happens when you've drilled into a subfolder. If > you're at the top level of your Orion folders, the toolbar commands work fine. Oops, this is not quite right. Commands inside the "New" menu (which only appears at the top level) refresh the view correctly. Commands inside the "More" menu, and the "New File/Folder" toolbar buttons, do not. I commented out that._initSelModel(); for now. You can see the items right away. But the selection model is not synced up so for now you still have to reload the page. That was a hole when I refactored the navHandler APIs. The current selection model is created on the base class level inside .createTree function. We need another API in the explorer to surface the .myTree.refresh function so that when the tree is refreshed we can sync up the selection model. I will fix this tomorrow. Noticed that drilling in and out of folders does not sync the selection model dictionary as well. Will fix them together with this bug. |