Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Attention list will also include the created task in OPEN status

Tianzhou Chen871701ac2f88
diff --git a/frontend/src/views/Home.vue b/frontend/src/views/Home.vue
index 44b94f041f..dbff326bcb 100644
--- a/frontend/src/views/Home.vue
+++ b/frontend/src/views/Home.vue
@@ -70,23 +70,30 @@ export default {
state.subscribeList = [];
state.closeList = [];
for (const task of taskList) {
- if (
- task.attributes.assignee?.id === currentUser!.id &&
- task.attributes.status === "OPEN"
- ) {
- state.attentionList.push(task);
- } else if (
- task.attributes.subscriberIdList.includes(currentUser!.id) &&
- task.attributes.status === "OPEN"
- ) {
- state.subscribeList.push(task);
- } else if (
- (task.attributes.creator.id === currentUser!.id ||
- task.attributes.assignee?.id === currentUser!.id) &&
- (task.attributes.status === "DONE" ||
- task.attributes.status === "CANCELED")
+ // "OPEN"
+ if (task.attributes.status === "OPEN") {
+ if (
+ task.attributes.creator.id === currentUser!.id ||
+ task.attributes.assignee?.id === currentUser!.id
+ ) {
+ state.attentionList.push(task);
+ } else if (
+ task.attributes.subscriberIdList.includes(currentUser!.id)
+ ) {
+ state.subscribeList.push(task);
+ }
+ }
+ // "DONE" or "CANCELED"
+ else if (
+ task.attributes.status === "DONE" ||
+ task.attributes.status === "CANCELED"
) {
- state.closeList.push(task);
+ if (
+ task.attributes.creator.id === currentUser!.id ||
+ task.attributes.assignee?.id === currentUser!.id
+ ) {
+ state.closeList.push(task);
+ }
}
}
})