golden-logic-ui 1.0.588 → 1.0.590

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.
@@ -297,10 +297,11 @@ const HF = /* @__PURE__ */ Ti(Mae, [["render", Uae]]), mK = _ae({
297
297
  },
298
298
  deleteAction() {
299
299
  axios.delete(this.route_url + "/destroyMedia/" + this.media_id).then((u) => {
300
+ console.log(this.uploadFileList), console.log(this.media_id);
300
301
  let o = this.uploadFileList.findIndex(
301
302
  (i) => i.id === this.media_id
302
303
  );
303
- o !== -1 && this.uploadFileList.splice(o, 1), this.closeDeleteModal(), g2.methods.add({
304
+ console.log(o), o !== -1 && this.uploadFileList.splice(o, 1), this.closeDeleteModal(), g2.methods.add({
304
305
  message: "Item deleted successfully.",
305
306
  type: "success",
306
307
  duration: 5e3
@@ -334,7 +335,7 @@ const HF = /* @__PURE__ */ Ti(Mae, [["render", Uae]]), mK = _ae({
334
335
  const o = u.target.files, i = Array.from(o).map(
335
336
  (c) => this.uploadFile(c)
336
337
  );
337
- await Promise.all(i), this.$emit("uploaded"), this.$emit("update:modelValue", this.uploadFileList), console.log("uploadFileList", this.uploadFileList);
338
+ await Promise.all(i), this.$emit("uploaded"), this.$emit("update:modelValue", this.uploadFileList);
338
339
  },
339
340
  getFirstError(u, o) {
340
341
  return u.hasOwnProperty(o) ? u[o][0] : "";
@@ -77813,14 +77814,19 @@ class PSe {
77813
77814
  },
77814
77815
  setup: function() {
77815
77816
  var m = this;
77816
- this.locale = this.returnLocale();
77817
+ this.locale = this.returnLocale(), this._languageChangeHandler = this.selectLanguage.bind(this);
77817
77818
  var O = this.element.querySelectorAll(".js-language-label");
77818
77819
  O && O.forEach(function(w) {
77819
77820
  w.textContent = this.locale;
77820
77821
  }, this), this.langSelectors.forEach(function(w) {
77821
- w.addEventListener("change", m.selectLanguage.bind(m));
77822
+ w.addEventListener("change", m._languageChangeHandler);
77822
77823
  });
77823
77824
  },
77825
+ destroy: function() {
77826
+ this.langSelectors && this._languageChangeHandler && this.langSelectors.forEach(function(m) {
77827
+ m.removeEventListener("change", this._languageChangeHandler);
77828
+ }, this), this._languageChangeHandler = null, this.element = null, this.container = null, this.transInputs = null, this.langSelectors = null, this.settings = Object.assign({}, this._defaults);
77829
+ },
77824
77830
  refresh: function() {
77825
77831
  var m = this;
77826
77832
  this.transInputs.forEach(function(O) {