mirror of
https://gitlab.com/bmcgonag/get_my.git
synced 2026-03-27 00:08:49 +00:00
Multiple updates and additions
- Added a permission to show or hide update version information on that dashboard as a card that will only show when new update info is available and not yet dismissed.
- Updated Lists so list items added will have their fist letter auto-capitalized
- Updated Lists so list items are searched against the products before being added to the list, so we have store info more commonly in lists
- Updated Products so new products will have their first letter capitalized automatically
- Updated the dashboard to show the Update Available card if this is enbaled in permissions.
- The dashboard card only shows for System Admin roles.
- The dashboard card is enabled by default
- The dashboard card is pulled from the GitLab releases RSS feed.
- The RSS Feed is only checked every 30 minutes using node-cron
- Updated System Configuration to have a toggle for the update available card
- Added a bell icon to the top and slide out navigation, shown when a new update is available, if update available is enabled in system configuration.
This commit is contained in:
parent
f02ea7d549
commit
c70f9bd74e
14 changed files with 410 additions and 29 deletions
|
|
@ -11,6 +11,7 @@ import { TaskItems } from '../imports/api/tasks.js';
|
|||
import { UserConfig } from '../imports/api/userConfig.js';
|
||||
import { MenuProdLinks } from '../imports/api/menuProdLinks.js';
|
||||
import { UserLast } from '../imports/api/userLast.js';
|
||||
import { UpdateInfo } from '../imports/api/updateInfo.js';
|
||||
|
||||
Meteor.publish("SystemConfig", function() {
|
||||
try {
|
||||
|
|
@ -28,6 +29,14 @@ Meteor.publish("UserConfigPrefs", function() {
|
|||
}
|
||||
});
|
||||
|
||||
Meteor.publish("UpdateVersion", function() {
|
||||
try {
|
||||
return UpdateInfo.find({ viewed: false });
|
||||
} catch(error) {
|
||||
console.log(" ERROR pulling updated version info: " + error);
|
||||
}
|
||||
})
|
||||
|
||||
Meteor.publish('userList', function() {
|
||||
return Meteor.users.find({});
|
||||
});
|
||||
|
|
@ -80,6 +89,20 @@ Meteor.publish("myListItems", function(listId) {
|
|||
}
|
||||
});
|
||||
|
||||
Meteor.publish("myStoreListItems", function(listId) {
|
||||
try {
|
||||
let stores = Store.find({});
|
||||
if (stores) {
|
||||
for (i=0; i<stores.length; i++) {
|
||||
let items = ListItems.find({ prodStore: store[i], listId: listId }).fetch();
|
||||
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
console.log(" ERROR pulling items or stores: " + error);
|
||||
}
|
||||
});
|
||||
|
||||
Meteor.publish("myMenus", function() {
|
||||
try {
|
||||
return Menus.find({ menuComplete: false });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue