Adjusted layout and removed logging

This commit is contained in:
Brian McGonagill 2025-08-09 07:24:54 -05:00
parent 680f7c614d
commit 047befcae9
2 changed files with 2 additions and 5 deletions

View file

@ -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" />

View file

@ -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 {