Skip to content

Commit

Permalink
fix: Update Task Detail
Browse files Browse the repository at this point in the history
  • Loading branch information
sirateek committed Feb 3, 2024
1 parent f209bc2 commit 00d36e4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/views/job/TaskDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@
Image URL:
{{ attribute.data.imageURL }}
</h2>
<h2>
Task Attributes:
{{
attribute.data.taskAttributes ??
"Task Attributes not support for displaying in frontend"
}}
</h2>
Status:
<StatusChip
:status="attribute.data.status"
:decorator-composable="useTaskStatusDecorator"
></StatusChip>

<v-textarea
label="Task Attributes"
v-model:model-value="attribute.taskAttribute"
disabled
>
</v-textarea>
</v-card-subtitle>
</v-card-item>
</v-card>
Expand Down
3 changes: 3 additions & 0 deletions src/views/job/composable/useGetTaskDetail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,15 @@ import { reactive } from "vue";
export function useGetTaskDetail(taskID: string) {
const attribute = reactive({
data: {} as TaskDetailResponse,
taskAttribute: "" as string,
});

async function getTaskDetail() {
const response =
await RepositoryFactory.instance.taskRepository.getTaskDetail(taskID);

attribute.taskAttribute = JSON.stringify(response.taskAttributes);

attribute.data = response;
}

Expand Down

0 comments on commit 00d36e4

Please sign in to comment.