Skip to content

Commit

Permalink
b/295762643 Specify project ID in URL parameter (#137)
Browse files Browse the repository at this point in the history
Allow a project ID to be passed as URL parameter, and prefill
the project selector accordingly.
  • Loading branch information
jpassing committed Aug 13, 2023
1 parent 359a6f8 commit 5fffbac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sources/src/main/resources/META-INF/resources/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,8 @@ <h2 class="mdl-card__title-text">Audit and review just-in-time access</h2>
// 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";
Expand Down

0 comments on commit 5fffbac

Please sign in to comment.