isobit-ui 0.0.338 → 0.0.341
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.
- package/dist/index.js +8 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* isobit-ui v0.0.
|
|
2
|
+
* isobit-ui v0.0.341
|
|
3
3
|
* (c) Erik Alarcon Pinedo
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -6382,7 +6382,7 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
6382
6382
|
save: function save() {
|
|
6383
6383
|
try {
|
|
6384
6384
|
var _exit2 = false;
|
|
6385
|
-
var
|
|
6385
|
+
var storage;
|
|
6386
6386
|
|
|
6387
6387
|
var _this4 = this;
|
|
6388
6388
|
|
|
@@ -6416,7 +6416,7 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
6416
6416
|
if (!(_typeof(o) === 'object' && !Array.isArray(o) && o !== null)) return;
|
|
6417
6417
|
return _invoke(function () {
|
|
6418
6418
|
if (!action || !_this4.app.networkStatus.connected) {
|
|
6419
|
-
|
|
6419
|
+
storage = me.$children[0].storage;
|
|
6420
6420
|
return _await(me.getStoredList(storage), function (storedList) {
|
|
6421
6421
|
if (!storedList) storedList = [];
|
|
6422
6422
|
|
|
@@ -6431,7 +6431,7 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
6431
6431
|
}
|
|
6432
6432
|
|
|
6433
6433
|
var db = window._.db;
|
|
6434
|
-
objectStore = db.transaction([storage], "readwrite").objectStore(storage);
|
|
6434
|
+
var objectStore = db.transaction([storage], "readwrite").objectStore(storage);
|
|
6435
6435
|
|
|
6436
6436
|
if (!o.id) {
|
|
6437
6437
|
o.id = -new Date();
|
|
@@ -6479,6 +6479,8 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
6479
6479
|
var data = result.data;
|
|
6480
6480
|
|
|
6481
6481
|
if (o.tmpId) {
|
|
6482
|
+
var objectStore = window._.db.transaction([storage], "readwrite").objectStore(storage);
|
|
6483
|
+
|
|
6482
6484
|
var item = objectStore.get(o.tmpId);
|
|
6483
6485
|
o.tmpSynchronized = 1;
|
|
6484
6486
|
if (data.id) o.id = data.id;
|
|
@@ -6505,6 +6507,8 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
6505
6507
|
});
|
|
6506
6508
|
});
|
|
6507
6509
|
})["catch"](function (r) {
|
|
6510
|
+
console.log(r);
|
|
6511
|
+
|
|
6508
6512
|
if (r.response) {
|
|
6509
6513
|
var l, e;
|
|
6510
6514
|
|