refactor to UI components

This commit is contained in:
2023-05-26 01:44:20 +02:00
parent 9ca0bba526
commit 87729c9c00
13 changed files with 112 additions and 36 deletions

View File

@@ -103,14 +103,14 @@ provide('loading', loading)
notes.
</p>
<form @submit.prevent="submitPassphrase(close)">
<input
<UIInputText
type="password"
class="input-bordered input mt-4 w-full"
:class="passphraseValid === false && 'input-error'"
class="w-full max-w-full"
:color="passphraseValid === false ? 'error' : 'regular'"
v-model="passphrase"
/>
></UIInputText>
</form>
<UIAlert color="error" class="mt-4">
<UIAlert color="error" class="mt-4" v-if="passphraseValid === false">
<i class="fa-solid fa-triangle-exclamation"></i>
The passphrase you entered is incorrect.
</UIAlert>