Clear password error on change in setup account
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<script setup>
|
||||
|
||||
import { ref, onMounted, useTemplateRef } from 'vue';
|
||||
import { ref, onMounted, useTemplateRef, watch } from 'vue';
|
||||
import { marked } from 'marked';
|
||||
import { Button, PasswordInput, FormGroup, TextInput } from '@cloudron/pankow';
|
||||
import PublicPageLayout from '../components/PublicPageLayout.vue';
|
||||
@@ -32,6 +32,10 @@ const MODE = {
|
||||
DONE: 'done',
|
||||
};
|
||||
|
||||
watch(password, () => {
|
||||
formError.value.password = null;
|
||||
});
|
||||
|
||||
async function onSubmit() {
|
||||
if (!form.value.reportValidity()) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user