@azrico/webobject 1.4.93 → 1.4.94

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.
@@ -109,29 +109,31 @@ var WebObjectManager = /*#__PURE__*/function (_ObjectManager, _setMetaValue, _ge
109
109
  }, _callee2);
110
110
  })));
111
111
  _this.event_add("on_delete", "on_delete-sendmsg", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
112
+ var srType;
112
113
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
113
114
  while (1) switch (_context3.prev = _context3.next) {
114
115
  case 0:
115
- _context3.t0 = _this.getSaveResultType();
116
- _context3.next = _context3.t0 === "normal" ? 3 : 6;
116
+ srType = _this.getSaveResultType();
117
+ _context3.t0 = srType;
118
+ _context3.next = _context3.t0 === "normal" ? 4 : 7;
117
119
  break;
118
- case 3:
119
- _context3.next = 5;
120
+ case 4:
121
+ _context3.next = 6;
120
122
  return _global.gfunc.run_action("show_message", {
121
123
  message: "Deleted",
122
124
  type: "success"
123
125
  });
124
- case 5:
125
- return _context3.abrupt("return", _context3.sent);
126
126
  case 6:
127
- _context3.next = 8;
127
+ return _context3.abrupt("return", _context3.sent);
128
+ case 7:
129
+ _context3.next = 9;
128
130
  return _global.gfunc.run_action("show_message", {
129
- message: "Not deleted",
131
+ message: "Not deleted (".concat(srType, ")"),
130
132
  type: "error"
131
133
  });
132
- case 8:
133
- return _context3.abrupt("return", _context3.sent);
134
134
  case 9:
135
+ return _context3.abrupt("return", _context3.sent);
136
+ case 10:
135
137
  case "end":
136
138
  return _context3.stop();
137
139
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azrico/webobject",
3
- "version": "1.4.93",
3
+ "version": "1.4.94",
4
4
  "description": "Stateful object",
5
5
  "author": "Azrideus",
6
6
  "license": "MIT",