Skip to content

Commit

Permalink
Merge pull request #480 from solita/revert-479-revert-477-allow-new-s…
Browse files Browse the repository at this point in the history
…igning-for-tester

Revert "Revert "Allow selecting the new signing method for a tester""
  • Loading branch information
solita-juhohaa authored Jun 5, 2024
2 parents 8bdf0b6 + 40c8053 commit cd6728e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion etp-front/src/pages/energiatodistus/ToolBar/toolbar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,11 @@
</style>

{#if signingActive}
<Signing {energiatodistus} reload={cancel} checkIfSelectionIsAllowed={true} />
<Signing
{energiatodistus}
reload={cancel}
checkIfSelectionIsAllowed={true}
{whoami} />
{/if}

<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
export let energiatodistus;
export let reload;
export let whoami;
export let selection = 'card';
Expand All @@ -33,7 +34,9 @@
allowSelection = false;
},
config => {
allowSelection = !isProduction(config.environment);
// Allow signing temporarily for laatija id 79 to check that the signing
// works as intended.
allowSelection = !isProduction(config.environment) || whoami.id === 79;
},
versionApi.getConfig
);
Expand Down

0 comments on commit cd6728e

Please sign in to comment.