qa: Include tasks in Todo list
This commit is contained in:
parent
cb489396ab
commit
3049989ac6
@ -1,6 +1,6 @@
|
|||||||
import { writable, derived } from 'svelte/store';
|
import { writable, derived } from 'svelte/store';
|
||||||
|
|
||||||
import { getQAView, getQAWork } from '$lib/todo';
|
import { getQAView, getQATodo, getQAWork } from '$lib/todo';
|
||||||
|
|
||||||
function createTodosStore() {
|
function createTodosStore() {
|
||||||
const { subscribe, set, update } = writable([]);
|
const { subscribe, set, update } = writable([]);
|
||||||
@ -15,7 +15,8 @@ function createTodosStore() {
|
|||||||
update,
|
update,
|
||||||
|
|
||||||
refresh: async () => {
|
refresh: async () => {
|
||||||
const list = await getQAWork();
|
const list = await getQATodo();
|
||||||
|
list.push(...await getQAWork());
|
||||||
update((m) => list);
|
update((m) => list);
|
||||||
return list;
|
return list;
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user