Skip to content

Commit

Permalink
feat: add possibility to define the component to use for awesomelist …
Browse files Browse the repository at this point in the history
…items
  • Loading branch information
fbatiga committed May 11, 2023
1 parent 6bd7e4b commit 9d776f8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/commands/generate/templates/controllers/sql.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class <%= entityClass %>Controller {
});
}
if (req.query.search) {
query = Utils.injectSqlSearchParams(req, query, {
query = Utils.injectSqlSearchParams(req.query.search, query, {
modelName: modelName
});
}
Expand Down
2 changes: 1 addition & 1 deletion src/commands/generate/templates/controllers/ts-sql.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class CrudSqlController {
return;
}
if (req.query.search) {
query = Utils.injectSqlSearchParams(req, query, {
query = Utils.injectSqlSearchParams(req.query.search, query, {
modelName: req.params.endpoint
});
}
Expand Down
1 change: 1 addition & 0 deletions src/commands/generate/templates/models/schema.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ module.exports = {
subtitleField: 'currentPosition',
labelsField: 'currentCompany',
descriptionField: 'description',
itemComponent: null
},
kanbanOptions: {},
tableOptions: {},
Expand Down

0 comments on commit 9d776f8

Please sign in to comment.