@windward/integrations 0.6.0 → 0.7.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.
package/CHANGELOG.md
CHANGED
|
@@ -220,14 +220,10 @@ export default {
|
|
|
220
220
|
this.block.metadata.config.tool_id = null
|
|
221
221
|
}
|
|
222
222
|
if (_.isEmpty(this.block.metadata.config.title)) {
|
|
223
|
-
this.block.metadata.config.title =
|
|
224
|
-
'windward.integrations.components.content.blocks.external_integration.lti_consumer.title'
|
|
225
|
-
)
|
|
223
|
+
this.block.metadata.config.title = ''
|
|
226
224
|
}
|
|
227
225
|
if (_.isEmpty(this.block.metadata.config.instructions)) {
|
|
228
|
-
this.block.metadata.config.instructions =
|
|
229
|
-
'windward.integrations.components.content.blocks.external_integration.lti_consumer.instructions'
|
|
230
|
-
)
|
|
226
|
+
this.block.metadata.config.instructions = ''
|
|
231
227
|
}
|
|
232
228
|
},
|
|
233
229
|
mounted() {
|
|
@@ -127,20 +127,28 @@ export default {
|
|
|
127
127
|
],
|
|
128
128
|
validation: {
|
|
129
129
|
shortInputRules: [
|
|
130
|
-
(v) =>
|
|
131
|
-
v.length
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
130
|
+
(v) => {
|
|
131
|
+
if (v && v.length >= 50) {
|
|
132
|
+
return this.$t(
|
|
133
|
+
'windward.integrations.shared.settings.errors.input_limitations',
|
|
134
|
+
[50]
|
|
135
|
+
)
|
|
136
|
+
} else {
|
|
137
|
+
return true
|
|
138
|
+
}
|
|
139
|
+
},
|
|
136
140
|
],
|
|
137
141
|
instructionRule: [
|
|
138
|
-
(v) =>
|
|
139
|
-
v.length
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
142
|
+
(v) => {
|
|
143
|
+
if (v && v.length >= 255) {
|
|
144
|
+
return this.$t(
|
|
145
|
+
'windward.integrations.shared.settings.errors.input_limitations',
|
|
146
|
+
[255]
|
|
147
|
+
)
|
|
148
|
+
} else {
|
|
149
|
+
return true
|
|
150
|
+
}
|
|
151
|
+
},
|
|
144
152
|
],
|
|
145
153
|
},
|
|
146
154
|
}
|