@policystudio/policy-studio-ui-vue 1.1.90-beta.32 → 1.1.90-beta.33

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": "@policystudio/policy-studio-ui-vue",
3
- "version": "1.1.90-beta.32",
3
+ "version": "1.1.90-beta.33",
4
4
  "description": "Policy Studio UI",
5
5
  "author": "Policy Studio Team",
6
6
  "scripts": {
@@ -131,10 +131,6 @@ const getIconClasses = computed(() => {
131
131
  return `${props.color}`
132
132
  })
133
133
 
134
- // const getHeight = computed(() => {
135
- // return props.height
136
- // })
137
-
138
134
  const getColor = computed(() => {
139
135
  if (getIconType.value === 'material-icons') return props.color
140
136
  return tailwindConfig.theme.colors[props.color.replace('psui-text-', '')] || tailwindConfig.theme.colors[props.color]
@@ -152,14 +148,16 @@ onMounted(() => {
152
148
  })
153
149
 
154
150
  const loadImage = () => {
155
- finishedImageLoad.value = false
156
- imageLoadError.value = false
157
- imageLoader({ imageUrl: props.icon, returnsBase64: false })
151
+ if(getIconType.value != 'material-icons') {
152
+ finishedImageLoad.value = false
153
+ imageLoadError.value = false
154
+ imageLoader({ imageUrl: props.icon, returnsBase64: false })
158
155
  .then(() => {
159
156
  finishedImageLoad.value = true
160
157
  })
161
158
  .catch(() => {
162
159
  imageLoadError.value = true
163
160
  })
161
+ }
164
162
  }
165
163
  </script>