fix: modals inputs not working properly
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
>
|
||||
<template #body>
|
||||
<HoppSmartInput
|
||||
v-model="name"
|
||||
v-model="editingName"
|
||||
placeholder=" "
|
||||
:label="t('action.label')"
|
||||
input-styles="floating-input"
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
>
|
||||
<template #body>
|
||||
<HoppSmartInput
|
||||
v-model="name"
|
||||
v-model="editingName"
|
||||
placeholder=" "
|
||||
input-styles="floating-input"
|
||||
:label="t('action.label')"
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
>
|
||||
<template #body>
|
||||
<HoppSmartInput
|
||||
v-model="name"
|
||||
v-model="editingName"
|
||||
placeholder=" "
|
||||
:label="t('action.label')"
|
||||
input-styles="floating-input"
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
>
|
||||
<template #body>
|
||||
<HoppSmartInput
|
||||
v-model="name"
|
||||
v-model="editingName"
|
||||
placeholder=" "
|
||||
input-styles="floating-input"
|
||||
:label="t('action.label')"
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
>
|
||||
<template #body>
|
||||
<HoppSmartInput
|
||||
v-model="name"
|
||||
v-model="editingName"
|
||||
placeholder=" "
|
||||
:label="t('action.label')"
|
||||
input-styles="floating-input"
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
>
|
||||
<template #body>
|
||||
<HoppSmartInput
|
||||
v-model="name"
|
||||
v-model="editingName"
|
||||
placeholder=" "
|
||||
:label="t('action.label')"
|
||||
input-styles="floating-input"
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
>
|
||||
<template #body>
|
||||
<HoppSmartInput
|
||||
v-model="name"
|
||||
v-model="editingName"
|
||||
placeholder=" "
|
||||
:label="t('action.label')"
|
||||
input-styles="floating-input"
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
>
|
||||
<template #body>
|
||||
<HoppSmartInput
|
||||
v-model="name"
|
||||
v-model="editingName"
|
||||
placeholder=" "
|
||||
:label="t('action.label')"
|
||||
input-styles="floating-input"
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<template #body>
|
||||
<div class="flex flex-col">
|
||||
<HoppSmartInput
|
||||
v-model="name"
|
||||
v-model="editingName"
|
||||
placeholder=" "
|
||||
:label="t('action.label')"
|
||||
input-styles="floating-input"
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<template #body>
|
||||
<div class="flex flex-col px-2">
|
||||
<HoppSmartInput
|
||||
v-model="name"
|
||||
v-model="editingName"
|
||||
placeholder=" "
|
||||
:input-styles="['floating-input', isViewer && 'opacity-25']"
|
||||
:label="t('action.label')"
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
<div class="relative flex flex-col">
|
||||
<input
|
||||
id="selectLabelAdd"
|
||||
v-model="name"
|
||||
v-model="editingName"
|
||||
v-focus
|
||||
class="input floating-input"
|
||||
placeholder=" "
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<HoppSmartModal v-if="show" dialog :title="t('team.new')" @close="hideModal">
|
||||
<template #body>
|
||||
<HoppSmartInput
|
||||
v-model="name"
|
||||
v-model="editingName"
|
||||
:label="t('action.label')"
|
||||
placeholder=" "
|
||||
input-styles="floating-input"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<template #body>
|
||||
<div class="flex flex-col">
|
||||
<HoppSmartInput
|
||||
v-model="name"
|
||||
v-model="editingName"
|
||||
placeholder=" "
|
||||
:label="t('action.label')"
|
||||
input-styles="floating-input"
|
||||
@@ -177,7 +177,7 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { computed, ref, toRef, watch } from "vue"
|
||||
import { computed, ref, watch } from "vue"
|
||||
import * as E from "fp-ts/Either"
|
||||
import {
|
||||
GetTeamDocument,
|
||||
@@ -228,7 +228,7 @@ const props = defineProps<{
|
||||
|
||||
const toast = useToast()
|
||||
|
||||
const editingName = toRef(props.editingTeam, "name")
|
||||
const editingName = ref(props.editingTeam.name)
|
||||
|
||||
watch(
|
||||
() => props.editingTeam.name,
|
||||
|
||||
Reference in New Issue
Block a user