better badges for empty/loading model library folders (#953)

* 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
This commit is contained in:
Alex "mcmonkey" Goodwin
2024-09-24 16:37:30 +09:00
committed by Chenlei Hu
parent 4e5bcd6a3b
commit d2d645f74b
5 changed files with 38 additions and 15 deletions

View File

@@ -56,7 +56,7 @@ describe('TreeExplorerTreeNode', () => {
expect(wrapper.findComponent(EditableText).props('modelValue')).toBe(
'Test Node'
)
expect(wrapper.findComponent(Badge).props()['value']).toBe(3)
expect(wrapper.findComponent(Badge).props()['value'].toString()).toBe('3')
})
it('makes node label editable when renamingEditingNode matches', async () => {