@flexem/fc-gui 3.0.0-alpha.46 → 3.0.0-alpha.47

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.
@@ -189,14 +189,19 @@ export class NumericalDisplayElement extends ReadableElement {
189
189
  const writeValue = this.dataTypeService.formatToDecimal(this.model.version, result.value, this.model.dataType);
190
190
  this.writeValue = writeValue;
191
191
  this.showValue = result.showValue;
192
- if (!this.numericalOperation && +this.displayText !== +this.showValue) {
192
+ if (+this.displayText !== +this.showValue) {
193
193
  this.variableCommunicator.write(this.writeVariableName, writeValue).subscribe();
194
- setTimeout(() => {
195
- if (+this.displayText !== +this.showValue) {
196
- this.writeValueMmodalRef.content.isSubmitting = false;
197
- this.writeValueMmodalRef.content.showValidationErrorInfo(this.localization.writeValueTimeout);
198
- }
199
- }, 10000);
194
+ if (this.numericalOperation) {
195
+ this.writeValueMmodalRef.hide();
196
+ }
197
+ else {
198
+ setTimeout(() => {
199
+ if (+this.displayText !== +this.showValue) {
200
+ this.writeValueMmodalRef.content.isSubmitting = false;
201
+ this.writeValueMmodalRef.content.showValidationErrorInfo(this.localization.writeValueTimeout);
202
+ }
203
+ }, 10000);
204
+ }
200
205
  }
201
206
  else {
202
207
  this.writeValueMmodalRef.hide();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "main": "bundles/fc-gui.umd.js",
3
- "version": "3.0.0-alpha.46",
3
+ "version": "3.0.0-alpha.47",
4
4
  "module": "public_api.js",
5
5
  "typings": "public_api.d.ts",
6
6
  "license": "UNLICENSED",