Closed manthey closed 3 months ago
Thanks for finding this! Unfortunately I cannot =) What steps are you taking to "open the hierarchy widget to select a folder"? I'm just:
Is there another way to pop up the hierarchy widget to "select a folder"?
Happy to toss a buttons.length
check in there, but wondering if the button should actualy be there and I should change my selector?
If its is the hierarchy widget Open Folder button causing problems, would fix here: https://github.com/DigitalSlideArchive/girder_volview/blob/main/girder_volview/web_client/views/HierarchyWidget.js#L43-L46
Specifically, I was doing an assetstore import and selected on the "Destination ID" folder icon. I don't think the special open buttons should ever be in a hierarchy widget. In other code I guard against adding buttons inside dialogs like so: if (!this.$el.closest('.modal-dialog').length) {
If you open the hierarchy widget to select a folder, this code https://github.com/DigitalSlideArchive/girder_volview/blob/main/girder_volview/web_client/views/itemPage.js#L9 can cause a console error, because there is no element with the
open-in-volview
class. Perhaps if should checkif (buttons.length)
before binding theonclick
handler.