@designcrowd/library.brand-page 5.10.36 → 5.10.37

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.
@@ -179,7 +179,7 @@ export default defineComponent({
179
179
  this.options[index].isChanged = false;
180
180
  if (this.options[index].name !== undefined) {
181
181
  if (this.options[index].name.length > MAX_PAYMENT_DESCRIPTION_LENGTH) {
182
- this.options[index].error = MAX_PAYMENT_DESCRIPTION_REACHED_MSG;
182
+ this.options[index].error = MAX_PAYMENT_DESCRIPTION_REACHED_MSG();
183
183
  this.options[index].name = this.options[index].name.slice(0, MAX_PAYMENT_DESCRIPTION_LENGTH);
184
184
  }
185
185
  else {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@designcrowd/library.brand-page",
3
3
  "description": "A collection of Maker/Designer applications",
4
- "version": "5.10.36",
4
+ "version": "5.10.37",
5
5
  "author": "Design.com Eng",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",
@@ -320,6 +320,9 @@ export default defineComponent({
320
320
  : UPGRADE_CTA_LOCATIONS.EDITOR_PUBLISH_TOP,
321
321
  });
322
322
  },
323
+ onBackBrandPage() {
324
+ this.$emit(EVENTS.Back);
325
+ },
323
326
  onChangeTemplateConfirmModalCancel() {
324
327
  this.brandPageMakerStore.onChangeTemplateConfirmModalCancel();
325
328
  },
@@ -8,6 +8,7 @@
8
8
  :back-url="backUrl"
9
9
  :back-button-label="backButtonLabel"
10
10
  :is-design-com="isDesignCom"
11
+ @back="onBackBrandPage"
11
12
  @save="saveBrandPage('Navigation')"
12
13
  @publish="saveAndPublishBrandPage(false)"
13
14
  />
@@ -47,5 +47,10 @@ export default defineComponent({
47
47
  saveAndPublishBrandPage() {
48
48
  this.$emit(EVENTS.Publish);
49
49
  },
50
+ handleBackClick() {
51
+ if (!this.backUrl) {
52
+ this.$emit(EVENTS.Back);
53
+ }
54
+ },
50
55
  },
51
56
  });
@@ -19,9 +19,10 @@
19
19
  variant="no-border"
20
20
  icon-left="chevron-left"
21
21
  :white="true"
22
- :url="backUrl"
22
+ :url="backUrl || null"
23
23
  class="tw-w-full tw-ml-4 tw-hidden lg:tw-block"
24
24
  data-test-back-to-designs-button
25
+ @click="handleBackClick"
25
26
  />
26
27
  <ActionBarNavigation
27
28
  @save="saveBrandPage"
@@ -7,6 +7,7 @@ export const EVENTS = {
7
7
  Save: 'save',
8
8
  Publish: 'publish',
9
9
  Initialised: 'initialised',
10
+ Back: 'Back',
10
11
  } as const;
11
12
 
12
13
  export const S3_TEMPLATE_ASSETS_URL =
@@ -236,7 +236,7 @@ export default defineComponent({
236
236
  if (
237
237
  this.options[index].name!.length > MAX_PAYMENT_DESCRIPTION_LENGTH
238
238
  ) {
239
- this.options[index].error = MAX_PAYMENT_DESCRIPTION_REACHED_MSG;
239
+ this.options[index].error = MAX_PAYMENT_DESCRIPTION_REACHED_MSG();
240
240
  this.options[index].name = this.options[index].name!.slice(
241
241
  0,
242
242
  MAX_PAYMENT_DESCRIPTION_LENGTH,