Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

better badges for empty/loading model library folders #953

Merged
merged 6 commits into from
Sep 24, 2024

Conversation

mcmonkey4eva
Copy link
Contributor

for #945

image

Unloaded folders display ?, empty folders display 0

Adds helper functions in the tree explorer code to support altering the badge text, similar to the icon alteration code.

Minor side change, but I also changed the // ... comments documenting a few options to /** ... */ doc comments so that IDEs will render them

src/components/sidebar/tabs/ModelLibrarySidebarTab.vue Outdated Show resolved Hide resolved
src/types/treeExplorerTypes.ts Outdated Show resolved Hide resolved
@mcmonkey4eva
Copy link
Contributor Author

null prop fallback makes the code a fair bit simpler and cures all prior review comments in one, nice

@huchenlei huchenlei merged commit 227fc62 into dev1.3 Sep 24, 2024
9 checks passed
@huchenlei huchenlei deleted the model-library-badges branch September 24, 2024 07:37
huchenlei pushed a commit that referenced this pull request Sep 24, 2024
* better badges for empty/loading model library folders

for #945

* fix total count on loaded nodes

* fix test break

* additional test fix

* use a null prop fallback instead of having to explicitly calc

* patch
huchenlei pushed a commit that referenced this pull request Sep 25, 2024
* better badges for empty/loading model library folders

for #945

* fix total count on loaded nodes

* fix test break

* additional test fix

* use a null prop fallback instead of having to explicitly calc

* patch
huchenlei pushed a commit that referenced this pull request Sep 25, 2024
* better badges for empty/loading model library folders

for #945

* fix total count on loaded nodes

* fix test break

* additional test fix

* use a null prop fallback instead of having to explicitly calc

* patch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants