mirror of
https://code.lenaisten.de/Lenaisten/advent22.git
synced 2026-02-25 02:20:17 +00:00
🔧 model rework for "Credentials" 🐛 (missed file)
- updated ui/src/components/LoginModal.vue
This commit is contained in:
parent
f72d8e65a5
commit
ff6afae0a0
1 changed files with 6 additions and 3 deletions
|
|
@ -16,7 +16,7 @@
|
|||
ref="username_input"
|
||||
class="input"
|
||||
type="text"
|
||||
v-model="creds[0]"
|
||||
v-model="creds.username"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
<div class="field">
|
||||
<label class="label">Passwort</label>
|
||||
<div class="control">
|
||||
<input class="input" type="password" v-model="creds[1]" />
|
||||
<input class="input" type="password" v-model="creds.password" />
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
|
@ -60,7 +60,10 @@ const emit = defineEmits<{
|
|||
(event: "cancel"): void;
|
||||
}>();
|
||||
|
||||
const creds = ref<Credentials>(["", ""]);
|
||||
const creds = ref<Credentials>({
|
||||
username: "",
|
||||
password: "",
|
||||
});
|
||||
|
||||
function submit(): void {
|
||||
emit("submit", creds.value);
|
||||
|
|
|
|||
Loading…
Reference in a new issue