From 5fffbac99c76f16205c69fc3b2abd6aeb6f87e4c Mon Sep 17 00:00:00 2001 From: Johannes Passing Date: Mon, 14 Aug 2023 09:53:12 +1000 Subject: [PATCH] b/295762643 Specify project ID in URL parameter (#137) Allow a project ID to be passed as URL parameter, and prefill the project selector accordingly. --- sources/src/main/resources/META-INF/resources/index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sources/src/main/resources/META-INF/resources/index.html b/sources/src/main/resources/META-INF/resources/index.html index 8a7298e6b..334e198a7 100644 --- a/sources/src/main/resources/META-INF/resources/index.html +++ b/sources/src/main/resources/META-INF/resources/index.html @@ -748,7 +748,8 @@

Audit and review just-in-time access

// Step: Select project. // const requestPane = gui.requestPane; - requestPane.selectedProjectId = localSettings.lastProjectId; + requestPane.selectedProjectId = queryParameters.get("projectId") ?? localSettings.lastProjectId; + requestPane.requestStep.addHandler(async () => { if (!(requestPane.selectedProjectId)) { throw "Select a project";