@windward/integrations 0.5.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 +11 -0
- package/bitbucket-pipelines.yml +14 -0
- package/components/Content/Blocks/ExternalIntegration/LtiConsumer.vue +2 -6
- package/components/Integration/JobTable.vue +1 -1
- package/components/Settings/ExternalIntegration/LtiConsumerSettings.vue +28 -2
- package/i18n/en-US/components/settings/external_integration/lti_consumer.ts +2 -2
- package/i18n/en-US/shared/settings.ts +3 -0
- package/i18n/es-ES/shared/settings.ts +3 -0
- package/i18n/sv-SE/shared/settings.ts +3 -0
- package/package.json +1 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
image: atlassian/default-image:3
|
|
2
|
+
|
|
3
|
+
pipelines:
|
|
4
|
+
custom:
|
|
5
|
+
create-release:
|
|
6
|
+
import: infrastructure-automation:master:create-release
|
|
7
|
+
publish-release:
|
|
8
|
+
import: infrastructure-automation:master:publish-release
|
|
9
|
+
|
|
10
|
+
branches:
|
|
11
|
+
"release/*":
|
|
12
|
+
import: infrastructure-automation:master:auto-update
|
|
13
|
+
"hotfix/*":
|
|
14
|
+
import: infrastructure-automation:master:auto-update
|
|
@@ -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() {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
v-model="block.metadata.config.title"
|
|
5
5
|
outlined
|
|
6
6
|
:counter="50"
|
|
7
|
-
|
|
7
|
+
:rules="validation.shortInputRules"
|
|
8
8
|
:label="
|
|
9
9
|
$t(
|
|
10
10
|
'windward.integrations.components.settings.external_integration.lti_consumer.title'
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
<v-textarea
|
|
16
16
|
v-model="block.metadata.config.instructions"
|
|
17
17
|
outlined
|
|
18
|
+
:rules="validation.instructionRule"
|
|
18
19
|
:counter="255"
|
|
19
|
-
maxlength="255"
|
|
20
20
|
:label="
|
|
21
21
|
$t(
|
|
22
22
|
'windward.integrations.components.settings.external_integration.lti_consumer.instructions'
|
|
@@ -125,6 +125,32 @@ export default {
|
|
|
125
125
|
value: 'modal',
|
|
126
126
|
},
|
|
127
127
|
],
|
|
128
|
+
validation: {
|
|
129
|
+
shortInputRules: [
|
|
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
|
+
},
|
|
140
|
+
],
|
|
141
|
+
instructionRule: [
|
|
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
|
+
},
|
|
152
|
+
],
|
|
153
|
+
},
|
|
128
154
|
}
|
|
129
155
|
},
|
|
130
156
|
async fetch() {
|