feat: Created task lists that work in categories
All checks were successful
Build and Push App Image / build-and-push (push) Successful in 1m20s
All checks were successful
Build and Push App Image / build-and-push (push) Successful in 1m20s
This commit is contained in:
@@ -16,12 +16,6 @@
|
||||
<label class="form-label mt-3">Description</label>
|
||||
<textarea v-model="localTask.description" class="form-control" rows="5" maxlength="2000"></textarea>
|
||||
|
||||
<label class="form-label mt-3">Category</label>
|
||||
<select v-model="localTask.category_id" class="form-select">
|
||||
<option value="">Uncategorized</option>
|
||||
<option v-for="category in categoryOptions" :key="category.id" :value="category.id">{{ category.label }}</option>
|
||||
</select>
|
||||
|
||||
<label class="form-label mt-3">Parent Task</label>
|
||||
<select v-model="localTask.parent_task_id" class="form-select">
|
||||
<option value="">No parent (top level)</option>
|
||||
@@ -83,10 +77,6 @@ const props = defineProps({
|
||||
type: Array,
|
||||
default: () => [],
|
||||
},
|
||||
categoryOptions: {
|
||||
type: Array,
|
||||
default: () => [],
|
||||
},
|
||||
parentTaskOptions: {
|
||||
type: Array,
|
||||
default: () => [],
|
||||
@@ -107,12 +97,12 @@ watch(
|
||||
localTask.value = {
|
||||
title: "",
|
||||
description: "",
|
||||
category_id: "",
|
||||
task_list_id: "",
|
||||
status_id: props.statuses[0]?.id || "",
|
||||
parent_task_id: "",
|
||||
note_links: [],
|
||||
...value,
|
||||
category_id: value?.category_id || "",
|
||||
task_list_id: value?.task_list_id || "",
|
||||
parent_task_id: value?.parent_task_id || "",
|
||||
note_links: value?.note_links || [],
|
||||
};
|
||||
@@ -138,13 +128,10 @@ const stepClass = (status) => {
|
||||
const saveTask = () => {
|
||||
emit("save-task", {
|
||||
...localTask.value,
|
||||
category_id: localTask.value.category_id || null,
|
||||
task_list_id: localTask.value.task_list_id || null,
|
||||
parent_task_id: localTask.value.parent_task_id || null,
|
||||
});
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped src="../assets/styles/scoped/components/TaskDetailModal.css"></style>
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user