@resolveio/client-lib-core 1.0.10 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -72,7 +72,8 @@ class CoreService {
72
72
  this.hasConnected.next(connected);
73
73
  }
74
74
  setNavbarModuleData(data) {
75
- data.tabs = data.tabs.filter(a => a.params === null).sort((a, b) => a.label.localeCompare(b.label)).concat(data.tabs.filter(a => a.params !== null).sort((a, b) => a.label.localeCompare(b.label)));
75
+ // data.tabs = data.tabs.filter(a => a.params === null).sort((a, b) => a.label.localeCompare(b.label)).concat(data.tabs.filter(a => a.params !== null).sort((a, b) => a.label.localeCompare(b.label)));
76
+ data.tabs = data.tabs.filter(a => a.params === null).concat(data.tabs.filter(a => a.params !== null));
76
77
  this.navbarModuleData.next(data);
77
78
  }
78
79
  setHasStatusMessage(data) {
@@ -1164,11 +1165,11 @@ class SocketManagerService {
1164
1165
  type: 'collectionUpdate'
1165
1166
  });
1166
1167
  update.data[2] = messageId;
1167
- if (update.type === 'updateDocument' && update.oldData) {
1168
+ if (update.type === 'updateDocument') {
1168
1169
  update.data[4] = 'updateDocumentOffline';
1169
1170
  update.data[0] = 'Offline - ' + update.data[0];
1170
1171
  }
1171
- else if (update.type === 'updateDocumentProps' && update.oldData) {
1172
+ else if (update.type === 'updateDocumentProps') {
1172
1173
  update.data[4] = 'updateDocumentPropsOffline';
1173
1174
  update.data[0] = 'Offline - ' + update.data[0];
1174
1175
  }
@@ -1336,7 +1337,6 @@ class SocketManagerService {
1336
1337
  this._offline.insertDocument('collectionUpdate', {
1337
1338
  type: 'insert',
1338
1339
  data: data,
1339
- oldData: null,
1340
1340
  date: new Date()
1341
1341
  });
1342
1342
  let res = this._offline.insertDocument(data[5], data[6]);
@@ -1351,7 +1351,6 @@ class SocketManagerService {
1351
1351
  this._offline.insertDocument('collectionUpdate', {
1352
1352
  type: 'updateDocument',
1353
1353
  data: data,
1354
- oldData: this._offline.findOne(data[5], data[6]._id),
1355
1354
  date: new Date()
1356
1355
  });
1357
1356
  if (this._offline.findOne(data[5], { _id: data[6]._id })) {
@@ -1371,7 +1370,6 @@ class SocketManagerService {
1371
1370
  this._offline.insertDocument('collectionUpdate', {
1372
1371
  type: 'updateDocumentProps',
1373
1372
  data: data,
1374
- oldData: this._offline.findOne(data[5], data[6]),
1375
1373
  date: new Date()
1376
1374
  });
1377
1375
  if (this._offline.findOne(data[5], { _id: data[6] })) {
@@ -1391,7 +1389,6 @@ class SocketManagerService {
1391
1389
  this._offline.insertDocument('collectionUpdate', {
1392
1390
  type: 'removeDocument',
1393
1391
  data: data,
1394
- oldData: null,
1395
1392
  date: new Date()
1396
1393
  });
1397
1394
  if (this._offline.findOne(data[5], { _id: data[6] })) {