@cortezaproject/corteza-vue 2023.9.5 → 2023.9.6-b

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.es.js CHANGED
@@ -77227,15 +77227,18 @@ const definitions = {
77227
77227
  // @ts-ignore
77228
77228
  if (this.$root.$options.name === 'compose') {
77229
77229
  let name = 'page.record';
77230
- if (edit || !recordID || recordID === NoID) {
77231
- name += recordID && recordID !== NoID ? '.edit' : '.create';
77230
+ if (!recordID || recordID === NoID) {
77231
+ name += '.create';
77232
+ }
77233
+ else if (edit) {
77234
+ name += '.edit';
77232
77235
  }
77233
77236
  // If name and params match, make sure to refresh page instead of push
77234
77237
  // @ts-ignore
77235
77238
  const reloadPage = name === this.$route.name && slug === this.$route.params.slug && pageID === this.$route.params.pageID && recordID === this.$route.params.recordID;
77236
77239
  setTimeout(() => {
77237
77240
  console.debug('reroute to %s via prompt in %d sec', name, delay, { namespaceID, slug, moduleID, recordID });
77238
- const routeParams = { name, params: { recordID, pageID, slug } };
77241
+ const routeParams = { name, params: { recordID, pageID, slug, edit } };
77239
77242
  if (reloadPage) {
77240
77243
  window.location.reload();
77241
77244
  }
@@ -77244,6 +77247,7 @@ const definitions = {
77244
77247
  this.$root.$emit('show-record-modal', {
77245
77248
  recordID: !recordID ? NoID : recordID,
77246
77249
  recordPageID: pageID,
77250
+ edit,
77247
77251
  });
77248
77252
  }
77249
77253
  else if (openMode === 'newTab') {
@@ -77677,8 +77681,8 @@ const variants = [
77677
77681
  { value: 'dark', text: 'Dark' },
77678
77682
  ];
77679
77683
  const openModeVariants = [
77680
- { value: 'newTab', text: 'Open link in a new tab' },
77681
77684
  { value: 'sameTab', text: 'Open link in the same tab' },
77685
+ { value: 'newTab', text: 'Open link in a new tab' },
77682
77686
  ];
77683
77687
  const prompts = Object.freeze([
77684
77688
  {