saasufy-components 3.3.0 → 3.4.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.
Files changed (2) hide show
  1. package/model-input.js +6 -1
  2. package/package.json +1 -1
package/model-input.js CHANGED
@@ -104,6 +104,8 @@ class ModelInput extends SocketConsumer {
104
104
  let height = this.getAttribute('height');
105
105
  let hideErrorLogs = this.hasAttribute('hide-error-logs');
106
106
  let enableRebound = this.hasAttribute('enable-rebound');
107
+ let hasConsumers = this.hasAttribute('consumers');
108
+ let writeOnly = type === 'file' && !hasConsumers;
107
109
 
108
110
  let socket;
109
111
  if (socketInstanceProperty) {
@@ -126,11 +128,14 @@ class ModelInput extends SocketConsumer {
126
128
  socket = this.getSocket();
127
129
  }
128
130
  this.socket = socket;
131
+
132
+ let modelFieldList = writeOnly ? [] : [ modelField ];
133
+
129
134
  let model = new AGModel({
130
135
  socket: this.socket,
131
136
  type: modelType,
132
137
  id: modelId,
133
- fields: [ modelField ],
138
+ fields: modelFieldList,
134
139
  enableRebound
135
140
  });
136
141
  if (!hideErrorLogs) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saasufy-components",
3
- "version": "3.3.0",
3
+ "version": "3.4.1",
4
4
  "description": "Components for Saasufy.",
5
5
  "main": "index.js",
6
6
  "scripts": {