Skip to content
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.

Commit

Permalink
Confirm page improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Levminer committed Oct 6, 2022
1 parent 85d91c7 commit 270b9f1
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions interface/windows/confirm/confirm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<h5>Your codes are protected by your password. If you forgot your password you can't access your codes.</h5>
</div>
<div>
<button class="smallButton">
<button class="smallButton" on:click={() => open("https://github.com/levminer/authme")}>
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
</svg>
Expand All @@ -53,7 +53,17 @@
</div>
</div>

<script>
<script lang="ts">
import { open } from "interface/utils/navigate"
import { onMount } from "svelte"
import Details from "../../components/details.svelte"
import { confirmPassword, showPassword } from "./index"
onMount(() => {
document.querySelector<HTMLInputElement>(".passwordInput").addEventListener("keypress", (event) => {
if (event.key === "Enter") {
confirmPassword()
}
})
})
</script>

0 comments on commit 270b9f1

Please sign in to comment.