Compare commits

...

38 Commits

Author SHA1 Message Date
7a0a67070d merging master 2021-06-02 15:27:38 -07:00
d36db3b958 if no item in tree and scroll path set, need to remove it as well 2021-06-02 15:18:52 -07:00
5f4aa88556 checking if item is in tree, before scrolling 2021-06-02 15:17:00 -07:00
73451700f2 removing comp listeners when itme is closed 2021-06-02 15:14:31 -07:00
5610ef9921 fixing search 2021-05-27 12:35:23 -07:00
1b46b0d032 updating when no search reults text shows and hides 2021-05-26 15:06:40 -07:00
048805418f updating when no search reults text shows and hides 2021-05-26 14:46:56 -07:00
0e7704d628 updating when to stop checking if need to scroll 2021-05-26 14:25:15 -07:00
76614f8507 remove debug code 2021-05-26 13:57:03 -07:00
77460961ce modified scroll to handling to be more consistent, updated how open and scroll is handled 2021-05-26 13:40:30 -07:00
ec83426de2 addressing PR comments, add computed styles, cleaned up some code, clarified some things 2021-05-25 12:39:26 -07:00
3e23a0b044 Merge branch 'tree-revert-refactor' of https://github.com/nasa/openmct into tree-revert-refactor
Merge'n master
2021-05-24 12:14:30 -07:00
b96b099551 Merge branch 'master' into tree-revert-refactor 2021-05-24 11:45:35 -07:00
31c2dbd273 removing unused abortSignal for now 2021-05-24 10:39:42 -07:00
8009944f1d Merge branch 'master' into tree-revert-refactor 2021-05-24 10:32:22 -07:00
4748bb1e21 clearing search results before debounce method call to prevent prev results from showing 2021-05-24 10:27:21 -07:00
43a1d60a3f Styling for treeview
- Added and applied new icon glyph `icon-folders-collapse`;
2021-05-21 19:25:29 -07:00
06d7486d2a Styling for treeview
- Cleaned up CSS code;
- Refined margins in tree item;
- Increased hit area of expand/collapse arrow;
- Better contrast for tree hovers in Espresso theme;
- Fixed grid view in mobile mode;
- TODO: better icon for "collapse all" folders button;
2021-05-21 16:50:59 -07:00
a2a9f99538 some (hopefully, but most likely not) final tweaks 2021-05-20 14:54:42 -07:00
261ea7b543 dev testing 2021-05-20 13:20:57 -07:00
4330b54f0f dev testing 2021-05-20 12:20:25 -07:00
212adfc3c1 dev testing 2021-05-20 11:30:46 -07:00
9e371f29d2 dev testing 2021-05-20 09:45:38 -07:00
5d8bef6ef8 dev testing 2021-05-19 18:06:08 -07:00
52f70a0489 dev testing 2021-05-19 17:41:48 -07:00
d48951c340 dev testing 2021-05-19 17:31:51 -07:00
bd2d6d9ea5 dev testing 2021-05-19 16:27:49 -07:00
8e735379f9 dev testing 2021-05-19 15:33:33 -07:00
b9c8404d9d dev testing 2021-05-19 15:19:32 -07:00
0b71f97b3b dev testing 2021-05-19 14:59:35 -07:00
dc14858253 track loading, prevent dupe loading, abort loading 2021-05-19 14:31:46 -07:00
938a127e46 wip 2021-05-18 17:09:24 -07:00
21ec2e46fe adding loading tracking per item for visual feedback 2021-05-17 12:38:35 -07:00
170927748b Merge branch 'master' into tree-revert-refactor
Merge'n master
2021-05-17 11:27:25 -07:00
648c8a13c4 fixed scroll to issues 2021-05-07 15:08:43 -07:00
bd09b1a2cb handling sync and scroll more efficiently, adding to open empty objects, cleaning up code a bit 2021-05-05 12:45:59 -07:00
4eb5fe3978 WIP 2021-04-30 14:26:56 -07:00
776baa159a WIP: modifying new tree back to old tree, but keepin the good stuff 2021-04-29 17:23:32 -07:00

View File

@ -308,6 +308,7 @@ export default {
|| !checkItem.navigationPath.includes(path);
});
this.openTreeItems.splice(pathIndex, 1);
this.removeCompositionListenerFor(path);
},
closeTreeItem(item) {
this.closeTreeItemByPath(item.navigationPath);
@ -393,12 +394,18 @@ export default {
}
const indexOfScroll = this.treeItems.findIndex(item => item.navigationPath === navigationPath);
if (indexOfScroll !== -1) {
const scrollTopAmount = indexOfScroll * this.itemHeight;
this.$refs.scrollable.scrollTo({
top: scrollTopAmount,
behavior: 'smooth'
});
} else if (this.scrollToPath) {
this.scrollToPath = undefined;
delete this.scrollToPath;
}
},
scrollEndEvent() {
this.$nextTick(() => {