Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

Hide the pipeline trigger icon when the processor is unreachable (#8171)

EthanHealy013bbce0896c7e
diff --git a/frontend/editor/src/desktop/hooks/usePortalAccess.ts b/frontend/editor/src/desktop/hooks/usePortalAccess.ts
new file mode 100644
index 0000000000..eb0ca671d0
--- /dev/null
+++ b/frontend/editor/src/desktop/hooks/usePortalAccess.ts
@@ -0,0 +1,7 @@
+// Desktop ships no processor, so the self-hosted session's portalAccess flag
+// must not surface processor entry points here.
+export {
+ usePortalAccessState,
+ usePortalAccess,
+ type PortalAccessState,
+} from "@core/hooks/usePortalAccess";
diff --git a/frontend/editor/src/proprietary/components/policies/EditorPipelinesPanel.tsx b/frontend/editor/src/proprietary/components/policies/EditorPipelinesPanel.tsx
index 2a6c7fedd3..a03f904a73 100644
--- a/frontend/editor/src/proprietary/components/policies/EditorPipelinesPanel.tsx
+++ b/frontend/editor/src/proprietary/components/policies/EditorPipelinesPanel.tsx
@@ -61,11 +61,13 @@ function PipelineRow({
{policyCategoryIcon(pipeline.policyKey, ICON_SIZE)}
</span>
<span className="editor-pipelines__row-label">{pipeline.label}</span>
- <TriggerIcon
- className="editor-pipelines__row-trigger"
- sx={TRIGGER_SX}
- titleAccess={trigger}
- />
+ {onOpen && (
+ <TriggerIcon
+ className="editor-pipelines__row-trigger"
+ sx={TRIGGER_SX}
+ titleAccess={trigger}
+ />
+ )}
{pipeline.runsToday > 0 && (
<span
className="editor-pipelines__row-count"