filter by recipe

This commit is contained in:
smilerz
2021-09-09 18:55:47 -05:00
parent 249557f8ef
commit aae3b679aa
11 changed files with 105 additions and 92 deletions

View File

@@ -203,6 +203,15 @@ export class Models {
},
}
static MEAL_PLAN = {
'name': i18n.t('Meal_Plan'),
'apiName': 'MealPlan',
'list': {
'params': ['options'],
},
}
}

View File

@@ -214,12 +214,23 @@ function formatParam(config, value) {
case 'type':
switch(v) {
case 'string':
if (value !== undefined){
if (Array.isArray(value)) {
let tmpValue = []
value.forEach(x => tmpValue.push(String(x)))
value = tmpValue
} else if (value !== undefined) {
value = String(value)
}
break;
case 'integer':
value = parseInt(value)
if (Array.isArray(value)) {
let tmpValue = []
value.forEach(x => tmpValue.push(parseInt(x)))
value = tmpValue
} else if (value !== undefined) {
value = parseInt(value)
}
break;
}
break;
}