@webitel/ui-sdk 23.12.23 → 23.12.24

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": "@webitel/ui-sdk",
3
- "version": "23.12.23",
3
+ "version": "23.12.24",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "build": "vue-cli-service build --target lib --name ui-sdk ./src/install.js",
@@ -144,8 +144,16 @@ export default {
144
144
  tag() {},
145
145
  },
146
146
 
147
+ watch: {
148
+ disabled() {
149
+ // load options if becomes enabled
150
+ if (!this.disabled) this.fetchOptions();
151
+ }
152
+ },
153
+
147
154
  created() {
148
- this.fetchOptions();
155
+ // load options only if not disabled
156
+ if (!this.disabled) this.fetchOptions();
149
157
  this.fetchOptions = debounce(this.fetchOptions, 500);
150
158
  },
151
159
  };