Skip to content

Commit

Permalink
feat: show solution when exercise is done
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Lauber <jan.lauber@protonmail.ch>
  • Loading branch information
janlauber committed Jun 19, 2023
1 parent 2d3609f commit 71edded
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<div class="code bg-base-200 p-2 my-2 rounded-md relative">
{@html Prism.highlight(text, Prism.languages[language], language)}
<button
class="btn btn-neutral absolute top-0 right-0"
class="absolute top-2 right-2"
on:click={copyCode}
>
<Copy class="" size={16} />
Expand Down
4 changes: 2 additions & 2 deletions kubelab-ui/src/routes/labs/[id]/[id]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@
<div class="flex justify-center">
<!-- svelte-ignore missing-declaration -->
<button
class="btn mt-4 {showSolution === window.location.pathname.split('/')[3] &&
$exercise_session.agentRunning
class="btn mt-4 {(showSolution === window.location.pathname.split('/')[3] &&
$exercise_session.agentRunning) || $exercise_session.endTime
? 'btn-neutral'
: 'btn-disabled'}"
on:click={() => openModal()}
Expand Down

0 comments on commit 71edded

Please sign in to comment.