saasufy-components 3.3.0 → 3.4.0

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 +5 -1
  2. package/package.json +1 -1
package/model-input.js CHANGED
@@ -104,6 +104,7 @@ 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');
107
108
 
108
109
  let socket;
109
110
  if (socketInstanceProperty) {
@@ -126,11 +127,14 @@ class ModelInput extends SocketConsumer {
126
127
  socket = this.getSocket();
127
128
  }
128
129
  this.socket = socket;
130
+
131
+ let modelFieldList = hasConsumers ? [ modelField ] : [];
132
+
129
133
  let model = new AGModel({
130
134
  socket: this.socket,
131
135
  type: modelType,
132
136
  id: modelId,
133
- fields: [ modelField ],
137
+ fields: modelFieldList,
134
138
  enableRebound
135
139
  });
136
140
  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.0",
4
4
  "description": "Components for Saasufy.",
5
5
  "main": "index.js",
6
6
  "scripts": {