fix(ui): keep blocked tasks out of pinned activity alerts
This commit is contained in:
1 file changed
+6
-1
@@ -60,7 +60,12 @@ const { activity } = storeToRefs(
|
||||
* own background work. */
|
||||
const filter = ref<ActivityFilter>("all");
|
||||
const shown = computed(() => filterActivity(activity.value, filter.value));
|
||||
const pinned = computed(() => (filter.value === "tasks" ? [] : alerts.value));
|
||||
// A blocked task already leads the page under Needs attention.
|
||||
const pinned = computed(() =>
|
||||
filter.value === "tasks"
|
||||
? []
|
||||
: alerts.value.filter((alert) => alert.kind !== "task.needs_decision"),
|
||||
);
|
||||
const emptyTitle = computed(() =>
|
||||
activityEmptyTitle(shown.value.length, filter.value),
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user