mirror of
https://gitlab.com/bmcgonag/get_my.git
synced 2026-03-26 15:58:50 +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>
|
||||
{{#if Template.subscriptionsReady}}
|
||||
<form action="submit" class="row prodInputForm" style="gap: 1em;">
|
||||
<div class="col s12">
|
||||
<div class="col l4 m6 s12">
|
||||
<p>
|
||||
<label>
|
||||
<input type="checkbox" id="showNoStoreSet" />
|
||||
|
|
@ -10,7 +10,7 @@
|
|||
</label>
|
||||
</p>
|
||||
</div>
|
||||
<div class="col s12">
|
||||
<div class="col l4 m6 s12">
|
||||
<p>
|
||||
<label>
|
||||
<input type="checkbox" id="showNoList" />
|
||||
|
|
|
|||
|
|
@ -42,13 +42,10 @@ Template.prodMgmtTbl.helpers({
|
|||
let idList = [];
|
||||
let idsInLists = ListItems.find({}).fetch();
|
||||
for (i=0; i < idsInLists.length; i++) {
|
||||
// console.log(idsInList[i]);
|
||||
idList.push(idsInLists[i].prodId);
|
||||
}
|
||||
if (i > idsInLists.length - 1) {
|
||||
console.dir(idList);
|
||||
let noProdsNot = Products.find({ _id: { $nin: idList }}).count();
|
||||
console.log(noProdsNot);
|
||||
return Products.find({ _id: { $nin: idList }}, { sort: { prodName: 1 }});
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue