fix: pass name along with task
This commit is contained in:
parent
ff6204e1cd
commit
f50a9f5027
@ -86,6 +86,7 @@ const rows = computed(() => {
|
|||||||
const showTaskModal = ref(false)
|
const showTaskModal = ref(false)
|
||||||
|
|
||||||
const task = ref({
|
const task = ref({
|
||||||
|
name: '',
|
||||||
title: '',
|
title: '',
|
||||||
description: '',
|
description: '',
|
||||||
assigned_to: '',
|
assigned_to: '',
|
||||||
@ -99,6 +100,7 @@ const task = ref({
|
|||||||
function showTask(name) {
|
function showTask(name) {
|
||||||
let t = rows.value?.find((row) => row.name === name)
|
let t = rows.value?.find((row) => row.name === name)
|
||||||
task.value = {
|
task.value = {
|
||||||
|
name: t.name,
|
||||||
title: t.title,
|
title: t.title,
|
||||||
description: t.description,
|
description: t.description,
|
||||||
assigned_to: t.assigned_to?.email || '',
|
assigned_to: t.assigned_to?.email || '',
|
||||||
@ -113,6 +115,7 @@ function showTask(name) {
|
|||||||
|
|
||||||
function createTask() {
|
function createTask() {
|
||||||
task.value = {
|
task.value = {
|
||||||
|
name: '',
|
||||||
title: '',
|
title: '',
|
||||||
description: '',
|
description: '',
|
||||||
assigned_to: '',
|
assigned_to: '',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user