mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Notification on perfil menu
This commit is contained in:
@@ -50,21 +50,26 @@ export class JsonStore {
|
||||
JSONStoreCollections[collectionName] = {};
|
||||
JSONStoreCollections[collectionName].searchFields = { UserId: 'integer' };
|
||||
|
||||
WL.JSONStore.init(JSONStoreCollections)
|
||||
WL.JSONStore.init(JSONStoreCollections)
|
||||
.then(function () {
|
||||
WL.Logger.debug('Find all colletion data');
|
||||
console.log('Find all colletion data');
|
||||
var notificationData
|
||||
WL.JSONStore.get(collectionName).findAll(allOptions).then((value) => {
|
||||
console.log('Find all colletion data', value);
|
||||
notificationData = JSON.parse(value);
|
||||
});
|
||||
console.log('Notification Data', notificationData);
|
||||
return notificationData;
|
||||
|
||||
|
||||
}).fail(function (err) {
|
||||
WL.Logger.error(err);
|
||||
console.log("JsonStore getColletion error ",err)
|
||||
});
|
||||
|
||||
const data = WL.JSONStore.get(collectionName).findAll(allOptions).then((value) => {
|
||||
console.log('Find all colletion data', value);
|
||||
return JSON.parse(value);
|
||||
});
|
||||
|
||||
|
||||
return data
|
||||
|
||||
//return notificationData
|
||||
}
|
||||
|
||||
getColletionById(collectionName, value) {
|
||||
|
||||
Reference in New Issue
Block a user