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