@designcrowd/fe-shared-lib 1.5.12 → 1.5.13

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@designcrowd/fe-shared-lib",
3
- "version": "1.5.12",
3
+ "version": "1.5.13",
4
4
  "scripts": {
5
5
  "start": "run-p storybook watch:translation",
6
6
  "build": "npm run build:css --production",
@@ -31,6 +31,7 @@
31
31
  :domain-name-items="domainNameItems"
32
32
  :currency="userCurrency"
33
33
  :model-value="modelValue"
34
+ @on-buy-now-click="onBuyNowClick"
34
35
  />
35
36
  </template>
36
37
  </Modal>
@@ -76,7 +77,7 @@ import brandCrowdApiClient from '../../clients/brand-crowd-api.client';
76
77
  import SellDomainNameSearch from '../SellDomainNameSearch/SellDomainNameSearch.vue';
77
78
  import SellDomainNameSearchResult from '../SellDomainNameSearchResult/SellDomainNameListSearchResult.vue';
78
79
  import Events from '../../constants/event-constants';
79
- import { sellDomainNameModalApplicationTr } from '../../../useSharedLibTranslate';
80
+ import { getCurrentLocale, sellDomainNameModalApplicationTr } from '../../../useSharedLibTranslate';
80
81
 
81
82
  export default {
82
83
  components: {
@@ -123,7 +124,7 @@ export default {
123
124
  setup() {
124
125
  return {
125
126
  domainSearchHeaderTitle: sellDomainNameModalApplicationTr('domainSearchHeaderTitle'),
126
- domainSearchHeaderSubtitle: sellDomainNameModalApplicationTr('domainSearchHeaderTitle'),
127
+ domainSearchHeaderSubtitle: sellDomainNameModalApplicationTr('domainSearchHeaderSubtitle'),
127
128
  };
128
129
  },
129
130
  data: () => ({
@@ -139,6 +140,11 @@ export default {
139
140
  this.searchDomainName(false);
140
141
  }
141
142
  },
143
+ computed: {
144
+ currentLocale() {
145
+ return getCurrentLocale();
146
+ },
147
+ },
142
148
  methods: {
143
149
  async onSearchDomainName(event) {
144
150
  this.searchText = event.searchText;
@@ -159,6 +165,10 @@ export default {
159
165
  request.logoDraftToken = this.logoDraftToken;
160
166
  }
161
167
 
168
+ if (this.currentLocale) {
169
+ request.locale = this.currentLocale;
170
+ }
171
+
162
172
  window.dispatchEvent(new CustomEvent(Events.DomainSearchEvent, { detail: request }));
163
173
  const result = await brandCrowdApiClient.searchDomainNamesByKeywordAsync(request);
164
174
  if (!result) {
@@ -182,6 +192,9 @@ export default {
182
192
  onCloseModal() {
183
193
  this.$emit('close-modal');
184
194
  },
195
+ onBuyNowClick() {
196
+ this.$emit('on-buy-now-click');
197
+ },
185
198
  onSearchTextInputChange(newVal) {
186
199
  this.searchText = newVal;
187
200
  },