mirror of
https://gitlab.com/bmcgonag/get_my.git
synced 2026-03-27 00:08:49 +00:00
Adjusted layout and removed logging
This commit is contained in:
parent
680f7c614d
commit
047befcae9
2 changed files with 2 additions and 5 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
<h4>Product Management</h4>
|
<h4>Product Management</h4>
|
||||||
{{#if Template.subscriptionsReady}}
|
{{#if Template.subscriptionsReady}}
|
||||||
<form action="submit" class="row prodInputForm" style="gap: 1em;">
|
<form action="submit" class="row prodInputForm" style="gap: 1em;">
|
||||||
<div class="col s12">
|
<div class="col l4 m6 s12">
|
||||||
<p>
|
<p>
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" id="showNoStoreSet" />
|
<input type="checkbox" id="showNoStoreSet" />
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
</label>
|
</label>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="col s12">
|
<div class="col l4 m6 s12">
|
||||||
<p>
|
<p>
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" id="showNoList" />
|
<input type="checkbox" id="showNoList" />
|
||||||
|
|
|
||||||
|
|
@ -42,13 +42,10 @@ Template.prodMgmtTbl.helpers({
|
||||||
let idList = [];
|
let idList = [];
|
||||||
let idsInLists = ListItems.find({}).fetch();
|
let idsInLists = ListItems.find({}).fetch();
|
||||||
for (i=0; i < idsInLists.length; i++) {
|
for (i=0; i < idsInLists.length; i++) {
|
||||||
// console.log(idsInList[i]);
|
|
||||||
idList.push(idsInLists[i].prodId);
|
idList.push(idsInLists[i].prodId);
|
||||||
}
|
}
|
||||||
if (i > idsInLists.length - 1) {
|
if (i > idsInLists.length - 1) {
|
||||||
console.dir(idList);
|
|
||||||
let noProdsNot = Products.find({ _id: { $nin: idList }}).count();
|
let noProdsNot = Products.find({ _id: { $nin: idList }}).count();
|
||||||
console.log(noProdsNot);
|
|
||||||
return Products.find({ _id: { $nin: idList }}, { sort: { prodName: 1 }});
|
return Products.find({ _id: { $nin: idList }}, { sort: { prodName: 1 }});
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue