@dotglitch/ngx-common 1.0.27 → 1.0.29

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.
@@ -528,8 +528,8 @@ class MenuComponent {
528
528
  typeof i['shortcut'] == "string" &&
529
529
  i['shortcut'].length > 2);
530
530
  if (this.ownerCords) {
531
- const selfY = parseInt(this.selfCords.top.replace('px', ''));
532
- const selfX = parseInt(this.selfCords.left.replace('px', ''));
531
+ const selfY = parseInt(this.selfCords.top?.replace('px', '') || '0');
532
+ const selfX = parseInt(this.selfCords.left?.replace('px', '') || '0');
533
533
  this.coverRectCords = {
534
534
  top: this.ownerCords.y - selfY - 16,
535
535
  left: this.ownerCords.x - selfX - 16,
@@ -8697,7 +8697,7 @@ class FileGridComponent {
8697
8697
  const url = this.config.apiSettings.deleteEntryUrlTemplate
8698
8698
  ? this.config.apiSettings.deleteEntryUrlTemplate(path)
8699
8699
  : this.config.apiSettings.deleteEntryUrl;
8700
- this.fetch.delete(url)
8700
+ this.fetch.post(url, { path: evt.path + evt.name })
8701
8701
  .then(() => this.loadFolder());
8702
8702
  },
8703
8703
  },