Skip to content

Commit ac24a99

Browse files
committed
More obvious link to ManageFileRootAction
1 parent c57d7e7 commit ac24a99

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

discvrcore/src/org/labkey/discvrcore/DiscvrCoreController.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,4 +291,16 @@ public URLHelper getRedirectURL(Object o) throws Exception
291291
return DetailsURL.fromString("laboratory/setTableIncrementValue.view", getContainer()).getActionURL();
292292
}
293293
}
294+
295+
// This allows registration of this action without creating a dependency between laboratory and discvrcore
296+
@UtilityAction(label = "Manage File Roots", description = "This standalone file root management action can be used on folder types that do not support the normal 'Manage Folder' UI.")
297+
@RequiresPermission(AdminPermission.class)
298+
public class ManageFileRootAction extends SimpleRedirectAction<Object>
299+
{
300+
@Override
301+
public URLHelper getRedirectURL(Object o) throws Exception
302+
{
303+
return DetailsURL.fromString("admin/manageFileRoot.view", getContainer()).getActionURL();
304+
}
305+
}
294306
}

0 commit comments

Comments
 (0)