Skip to content
Snippets Groups Projects
Commit 8060aab4 authored by Trirst's avatar Trirst
Browse files

Use v-if instead of v-show

parent 2d69b744
No related branches found
No related tags found
No related merge requests found
<template>
<div>
<button
v-show="!loggingIn"
v-if="!loggingIn"
@click="loggingIn = true"
class="
hover:text-gray-600
......@@ -13,9 +13,8 @@
>
Authenticate
</button>
<div>
<div v-if="loggingIn">
<input
v-show="loggingIn"
type="text"
placeholder="Secret token"
v-model="secret"
......@@ -31,10 +30,10 @@
"
/>
<span>
<button v-if="loggingIn" @click="authenticate(secret.trim())">
<button @click="authenticate(secret.trim())">
<Checkmark width="30" height="30" class="login-button"></Checkmark>
</button>
<button v-show="loggingIn" @click="loggingIn = false">
<button @click="loggingIn = false">
<XCircle width="30" height="30" class="login-button"></XCircle>
</button>
</span>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment