isobit-ui 0.0.340 → 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.
Files changed (2) hide show
  1. package/dist/index.js +6 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * isobit-ui v0.0.340
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 objectStore;
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
- var storage = me.$children[0].storage;
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();
@@ -6477,9 +6477,10 @@ window.ui = _$1.ui = function (cfg) {
6477
6477
  if (_exit2) return _result;
6478
6478
  axios__default['default'].post(action, o).then(function (result) {
6479
6479
  var data = result.data;
6480
- console.log(11);
6481
6480
 
6482
6481
  if (o.tmpId) {
6482
+ var objectStore = window._.db.transaction([storage], "readwrite").objectStore(storage);
6483
+
6483
6484
  var item = objectStore.get(o.tmpId);
6484
6485
  o.tmpSynchronized = 1;
6485
6486
  if (data.id) o.id = data.id;
@@ -6499,7 +6500,6 @@ window.ui = _$1.ui = function (cfg) {
6499
6500
  };
6500
6501
  }
6501
6502
 
6502
- console.log(22);
6503
6503
  me.MsgBox('El registro fue grabado exitosamente!', function () {
6504
6504
  me.close({
6505
6505
  success: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isobit-ui",
3
- "version": "0.0.340",
3
+ "version": "0.0.341",
4
4
  "description": "Vue component to play videos",
5
5
  "keywords": [
6
6
  "ui",