@designcrowd/fe-shared-lib 1.5.9-dbc-1 → 1.5.9-kp-1

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.
@@ -42,6 +42,7 @@
42
42
  :brand-page-type="brandPageType"
43
43
  @on-slug-changed="onSlugChanged"
44
44
  @internal-publish-brand-page="onInternalPublishBrandPage"
45
+ @use-existing-domain="onUseExistingDomain"
45
46
  >
46
47
  <template #recommended>
47
48
  <slot name="recommended" />
@@ -287,6 +288,7 @@ export default {
287
288
  'on-view-more-domains',
288
289
  'on-slug-changed',
289
290
  'on-show-domain-modal',
291
+ 'use-existing-domain',
290
292
  ],
291
293
  setup() {
292
294
  return {
@@ -387,6 +389,9 @@ export default {
387
389
  onSlugChanged(e) {
388
390
  this.$emit('on-slug-changed', e);
389
391
  },
392
+ onUseExistingDomain() {
393
+ this.$emit('use-existing-domain');
394
+ },
390
395
  onInternalPublishBrandPage(slug, customdomain) {
391
396
  this.$emit('internal-publish-brand-page', slug, customdomain);
392
397
  },
@@ -19,6 +19,8 @@
19
19
  "hasAlreadyPurchasedDomainCloseButtonLabel": "No thanks, maybe later",
20
20
  "selectDomainDropdownPlaceholder": "Select domain name",
21
21
  "websiteFriendlyName": "Website",
22
- "digitalBusinessCardFriendlyName": "Digital Business Card"
22
+ "digitalBusinessCardFriendlyName": "Digital Business Card",
23
+ "alreadyHaveADomainLabel": "Already have a domain?",
24
+ "useExistingDomainLabel": "Use existing domain"
23
25
  }
24
26
  }
@@ -46,6 +46,12 @@
46
46
  <div class="tw-mt-4">
47
47
  <slot name="recommended" />
48
48
  </div>
49
+ <div class="tw-mt-4 tw-text-center">
50
+ <p>
51
+ {{ publishBrandPageModalTr.alreadyHaveADomainLabel }}
52
+ <a href="#" @click.prevent="onUseExistingDomain">{{ publishBrandPageModalTr.useExistingDomainLabel }}</a>
53
+ </p>
54
+ </div>
49
55
  </div>
50
56
  </template>
51
57
  <script>
@@ -107,7 +113,7 @@ export default {
107
113
  default: '',
108
114
  },
109
115
  },
110
- emits: ['internal-publish-brand-page', 'on-slug-changed'],
116
+ emits: ['internal-publish-brand-page', 'on-slug-changed', 'use-existing-domain'],
111
117
  setup() {
112
118
  return {
113
119
  publishBrandPageModalTr,
@@ -163,6 +169,9 @@ export default {
163
169
  onPublish() {
164
170
  this.$emit('internal-publish-brand-page', this.internalSlug);
165
171
  },
172
+ onUseExistingDomain() {
173
+ this.$emit('use-existing-domain');
174
+ },
166
175
  },
167
176
  };
168
177
  </script>