diff --git a/src/components/Projects/ProjectMember.vue b/src/components/Projects/ProjectMember.vue new file mode 100644 index 00000000..46aaad47 --- /dev/null +++ b/src/components/Projects/ProjectMember.vue @@ -0,0 +1,60 @@ + + + + + + + {{ user.name }} + + + + + + + + + diff --git a/src/pages/ProjectNew.vue b/src/pages/ProjectNew.vue index ab69b4c6..14df8e31 100644 --- a/src/pages/ProjectNew.vue +++ b/src/pages/ProjectNew.vue @@ -11,6 +11,7 @@ import FormTextArea from '/@/components/UI/FormTextArea.vue' import { useToast } from 'vue-toastification' import FormProjectDuration from '/@/components/UI/FormProjectDuration.vue' import MemberInput from '/@/components/UI/MemberInput.vue' +import ProjectMember from '/@/components/Projects/ProjectMember.vue' const toast = useToast() @@ -43,6 +44,10 @@ const createProject = async () => { isSending.value = false } const members = ref([]) + +const handleDelete = (id: string) => { + members.value = members.value.filter(member => member.id !== id) +} @@ -85,6 +90,13 @@ const members = ref([]) + + + @@ -139,8 +151,11 @@ const members = ref([]) } .memberInput { - margin-bottom: 2rem; - margin-left: 0.5rem; + margin-bottom: 1rem; +} + +.projectMember { + margin-bottom: 0.5rem; } '
{{ user.name }}