mirror of
https://forge.chapril.org/tykayn/caisse-bliss
synced 2025-06-20 01:44:42 +02:00
list products with DTO
This commit is contained in:
parent
cd4b678002
commit
0d672d5447
7 changed files with 57 additions and 11 deletions
|
@ -209,12 +209,11 @@ angular
|
|||
console.log('fetch products...');
|
||||
$http.get('logged/get-my-products').then((rep) => {
|
||||
|
||||
// console.log('ok', rep);
|
||||
console.log('rep.data', rep.data)
|
||||
customCategories = [];
|
||||
let customCategories = [];
|
||||
for (let c of rep.data.categories) {
|
||||
c.hidden = false;
|
||||
customCategories.push(c);
|
||||
customCategories = Object.create(rep.data.categories);
|
||||
}
|
||||
console.log('customCategories', customCategories);
|
||||
$scope.categories = customCategories;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue