From b96b5d2090814ebce6192b1eef6554c25dd645e3 Mon Sep 17 00:00:00 2001 From: Jeffrey Baumes Date: Thu, 5 Dec 2024 16:05:41 -0500 Subject: [PATCH] Add a check for adding the menu item to^Che new-style menu --- .../web_client/views/hierarchyWidget.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/girder_annotation/girder_large_image_annotation/web_client/views/hierarchyWidget.js b/girder_annotation/girder_large_image_annotation/web_client/views/hierarchyWidget.js index 0882bbf45..7eb442d74 100644 --- a/girder_annotation/girder_large_image_annotation/web_client/views/hierarchyWidget.js +++ b/girder_annotation/girder_large_image_annotation/web_client/views/hierarchyWidget.js @@ -31,7 +31,13 @@ function ownAnnotation(root, folderId) { function addAccessControl(root) { if (root.$('.g-edit-annotation-access').length === 0) { - if (root.$('.g-folder-actions-menu > .divider').length > 0) { + if (root.$('.g-folder-actions-menu.min-w-48').length > 0) { + root.$('.g-folder-actions-menu.min-w-48').append( + '' + + 'Annotation access control' + + '' + ); + } else if (root.$('.g-folder-actions-menu > .divider').length > 0) { root.$('.g-folder-actions-menu > .divider').before( '
  • ' + '' +