@designcrowd/fe-shared-lib 1.2.5 → 1.2.6-debug-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.
@@ -19,9 +19,10 @@
19
19
  role="graphics-symbol"
20
20
  aria-labelledby="title"
21
21
  aria-describedby="desc"
22
+ :data-id="`${name}-${id}-title`"
22
23
  >
23
- <title :id="`${name}-${id}-title`" lang="en">{{ title }}</title>
24
- <desc :id="`${name}-${id}-desc`" lang="en">{{ description }}</desc>
24
+ <title v-if="title" :id="`${name}-${id}-title`" lang="en">{{ title }}</title>
25
+ <desc v-if="description" :id="`${name}-${id}-desc`" lang="en">{{ description }}</desc>
25
26
  <component :is="`icon-${iconName}`"></component>
26
27
  </svg>
27
28
  </div>
@@ -799,7 +800,7 @@ export default {
799
800
  return css || null;
800
801
  },
801
802
  title() {
802
- return this.altText || `${this.titleCase(this.name)}`;
803
+ return this.altText;
803
804
  },
804
805
  description() {
805
806
  return `${this.title} Icon`;
@@ -267,12 +267,13 @@ export default {
267
267
  const result = await brandCrowdClient.createUserLogo(payload);
268
268
 
269
269
  this.isCurrentlySaving = false;
270
-
270
+ console.log('got result', result);
271
271
  if (result.error) {
272
272
  this.onUploadError(result.error);
273
273
  return;
274
274
  }
275
-
275
+ debugger;
276
+ console.log('emitting response on finish');
276
277
  this.$emit('on-finish', result.response);
277
278
  },
278
279
  reset() {
@@ -11,8 +11,8 @@ const relativePathsToTranslationFiles = {
11
11
  'pt-PT': () => import('./bundles/bundled-translations.pt-PT.json'),
12
12
  };
13
13
 
14
- const setLocaleAsync = async (locale = 'en-US') => {
15
- const localeToUse = locale;
14
+ const setSharedLibLocaleAsync = async (locale = 'en-US') => {
15
+ const localeToUse = locale || 'en-US';
16
16
 
17
17
  if (!i18next.isInitialized) {
18
18
  await i18next.init({
@@ -35,4 +35,4 @@ const tr = (key, valuesToInterpolate = {}) => {
35
35
  return translated;
36
36
  };
37
37
 
38
- export { setLocaleAsync, tr };
38
+ export { setSharedLibLocaleAsync, tr };