From 5560396fc1c34ed5e5d5c5fd05ea07aa2d161249 Mon Sep 17 00:00:00 2001 From: Oliver Date: Sat, 30 May 2026 23:18:27 +1000 Subject: [PATCH] [UI] Spotlight actions (#12049) * [UI] error log shortcut Add spotlight action to jump to error logs * Add 'transfer orders' action --- src/frontend/src/defaults/actions.tsx | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/frontend/src/defaults/actions.tsx b/src/frontend/src/defaults/actions.tsx index 36e7df4402..fb0af4ef78 100644 --- a/src/frontend/src/defaults/actions.tsx +++ b/src/frontend/src/defaults/actions.tsx @@ -124,6 +124,17 @@ export function getActions(navigate: NavigateFunction) { leftSection: }); + globalSettings.isSet('TRANSFERORDER_ENABLED') && + user?.hasViewRole(UserRoles.transfer_order) && + _actions.push({ + id: 'transfer-orders', + label: t`Transfer Orders`, + description: t`Go to Transfer Orders`, + onClick: () => + navigate(ModelInformationDict['transferorder'].url_overview!), + leftSection: + }); + globalSettings.isSet('RETURNORDER_ENABLED') && user?.hasViewRole(UserRoles.return_order) && _actions.push({ @@ -172,6 +183,17 @@ export function getActions(navigate: NavigateFunction) { }); staff && + user?.hasViewPermission(ModelType.error) && + _actions.push({ + id: 'error-logs', + label: t`Error Logs`, + description: t`View error logs for this instance`, + onClick: () => navigate('/settings/admin/errors'), + leftSection: + }); + + staff && + user?.hasViewPermission(ModelType.pluginconfig) && _actions.push({ id: 'plugin-settings', label: t`Plugins`,