Notification on perfil menu

This commit is contained in:
Eudes Inácio
2021-07-31 22:04:09 +01:00
parent 3b594f2000
commit 7ac8ba793f
6 changed files with 141 additions and 56 deletions
+13 -8
View File
@@ -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) {