@designcrowd/library.brand-page 5.11.6 → 5.11.7

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/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.11.6",
4
+ "version": "5.11.7",
5
5
  "author": "Design.com Eng",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",
@@ -5,6 +5,7 @@ import type { MailingListViewModel } from '../../view-models';
5
5
  import brandPageClient from '../../clients/brand-page.client';
6
6
  import { getEmailValidationError } from '../../utils';
7
7
  import type { BrandPageContext } from '../../models';
8
+ import { mailingListTr } from '../../../composables/useTranslate';
8
9
 
9
10
  const MAX_NAME_LENGTH = 200;
10
11
 
@@ -28,6 +29,11 @@ export default defineComponent({
28
29
  required: true,
29
30
  },
30
31
  },
32
+ setup() {
33
+ return {
34
+ mailingListTr,
35
+ };
36
+ },
31
37
  data() {
32
38
  return {
33
39
  email: '',
@@ -37,8 +43,12 @@ export default defineComponent({
37
43
  hasSubscribed: false,
38
44
  submitError: undefined as string | undefined,
39
45
  isSubmitting: false,
46
+ show: false,
40
47
  };
41
48
  },
49
+ mounted() {
50
+ this.show = true;
51
+ },
42
52
  computed: {
43
53
  hasNameError(): boolean {
44
54
  return !!this.nameError;
@@ -1,6 +1,7 @@
1
1
  <template>
2
2
  <section>
3
3
  <div
4
+ v-if="show"
4
5
  class="tw-p-4"
5
6
  :style="containerStyle"
6
7
  :class="{
@@ -71,7 +72,6 @@
71
72
  import { TextInput } from '@designcrowd/fe-shared-lib';
72
73
  import MailingListMixin from './MailingList.mixin.ts';
73
74
  import TextWrapper from '../text-wrapper/TextWrapper.vue';
74
- import { mailingListTr } from '../../../composables/useTranslate.ts';
75
75
 
76
76
  export default {
77
77
  components: {
@@ -79,8 +79,10 @@ export default {
79
79
  TextWrapper,
80
80
  },
81
81
  mixins: [MailingListMixin],
82
- methods: {
83
- mailingListTr,
82
+ setup() {
83
+ return {
84
+ ...MailingListMixin.setup(),
85
+ };
84
86
  },
85
87
  };
86
88
  </script>