- other committ
This commit is contained in:
@@ -41,7 +41,7 @@ function getindexbycategory(category: string) {
|
||||
return state.categories.indexOf(category)
|
||||
}
|
||||
|
||||
function gettodosByCategory(category: string): [] {
|
||||
function gettodosByCategory(category: string): any[] {
|
||||
const indcat = state.categories.indexOf(category)
|
||||
if (!state.todos[indcat]) {
|
||||
return []
|
||||
@@ -109,8 +109,8 @@ namespace Getters {
|
||||
}, 'items_dacompletare')
|
||||
|
||||
const todos_completati = b.read((stateparam: ITodosState) => (cat: string): ITodo[] => {
|
||||
console.log('todos_completati')
|
||||
const indcat = getindexbycategory(cat)
|
||||
console.log('todos_completati', cat, 'indcat=', indcat, 'state.categories=', state.categories)
|
||||
if (stateparam.todos[indcat]) {
|
||||
let arrout = []
|
||||
if (stateparam.showtype === costanti.ShowTypeTask.SHOW_LAST_N_COMPLETED) { // Show only the first N completed
|
||||
@@ -126,6 +126,8 @@ namespace Getters {
|
||||
arrout = []
|
||||
}
|
||||
|
||||
console.log('arrout', arrout)
|
||||
|
||||
return arrout
|
||||
// return tools.mapSort(arrout)
|
||||
|
||||
@@ -253,7 +255,7 @@ namespace Actions {
|
||||
|
||||
async function dbLoad(context, { checkPending }) {
|
||||
|
||||
if (!static_data.ENABLE_PROJECTS_LOADING)
|
||||
if (!static_data.functionality.ENABLE_PROJECTS_LOADING)
|
||||
return null
|
||||
|
||||
console.log('dbLoad', nametable, checkPending, 'userid=', UserStore.state.userId)
|
||||
|
||||
Reference in New Issue
Block a user