@windward/integrations 0.13.0 → 0.14.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
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
3
|
<div v-if="!missing && consumer">
|
|
4
|
-
<h2
|
|
4
|
+
<h2
|
|
5
|
+
v-if="
|
|
6
|
+
block.metadata.config.title &&
|
|
7
|
+
block.metadata.config.display_title
|
|
8
|
+
"
|
|
9
|
+
tabindex="0"
|
|
10
|
+
>
|
|
5
11
|
{{ block.metadata.config.title }}
|
|
6
12
|
</h2>
|
|
7
13
|
|
|
@@ -227,6 +233,9 @@ export default {
|
|
|
227
233
|
if (_.isEmpty(this.block.metadata.config.title)) {
|
|
228
234
|
this.block.metadata.config.title = ''
|
|
229
235
|
}
|
|
236
|
+
if (!_.isBoolean(this.block.metadata.config.display_title)) {
|
|
237
|
+
this.$set(this.block.metadata.config, 'display_title', true)
|
|
238
|
+
}
|
|
230
239
|
if (_.isEmpty(this.block.metadata.config.instructions)) {
|
|
231
240
|
this.block.metadata.config.instructions = ''
|
|
232
241
|
}
|
|
@@ -1,31 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<v-container>
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
v-model="block.metadata.config.title"
|
|
6
|
-
outlined
|
|
7
|
-
:rules="$Validation.getRule('block.title')"
|
|
8
|
-
:counter="$Validation.getLimit('block.title')"
|
|
9
|
-
:label="
|
|
10
|
-
$t(
|
|
11
|
-
'windward.integrations.components.settings.external_integration.lti_consumer.title'
|
|
12
|
-
)
|
|
13
|
-
"
|
|
3
|
+
<BaseContentBlockSettings
|
|
4
|
+
v-model="block.metadata.config"
|
|
14
5
|
:disabled="render"
|
|
15
|
-
></
|
|
16
|
-
<v-textarea
|
|
17
|
-
id="block-settings-instructions"
|
|
18
|
-
v-model="block.metadata.config.instructions"
|
|
19
|
-
outlined
|
|
20
|
-
:rules="$Validation.getRule('block.instructions')"
|
|
21
|
-
:counter="$Validation.getLimit('block.instructions')"
|
|
22
|
-
:label="
|
|
23
|
-
$t(
|
|
24
|
-
'windward.integrations.components.settings.external_integration.lti_consumer.instructions'
|
|
25
|
-
)
|
|
26
|
-
"
|
|
27
|
-
:disabled="render"
|
|
28
|
-
></v-textarea>
|
|
6
|
+
></BaseContentBlockSettings>
|
|
29
7
|
<br />
|
|
30
8
|
<v-divider class="primary"></v-divider>
|
|
31
9
|
<br />
|
|
@@ -92,13 +70,17 @@
|
|
|
92
70
|
|
|
93
71
|
<script>
|
|
94
72
|
import { mapGetters } from 'vuex'
|
|
95
|
-
import LtiConsumer from '../../../models/ExternalIntegration/LtiConsumer'
|
|
96
73
|
import BaseContentSettings from '~/components/Content/Settings/BaseContentSettings.js'
|
|
97
74
|
import Course from '~/models/Course'
|
|
98
75
|
import Organization from '~/models/Organization'
|
|
76
|
+
import BaseContentBlockSettings from '~/components/Content/Settings/BaseContentBlockSettings.vue'
|
|
77
|
+
import LtiConsumer from '../../../models/ExternalIntegration/LtiConsumer'
|
|
99
78
|
|
|
100
79
|
export default {
|
|
101
80
|
name: 'ContentBlockExternalIntegrationLti1p1ConsumerSettings',
|
|
81
|
+
components: {
|
|
82
|
+
BaseContentBlockSettings,
|
|
83
|
+
},
|
|
102
84
|
extends: BaseContentSettings,
|
|
103
85
|
props: {
|
|
104
86
|
settings: { type: Object, required: false, default: null },
|
|
@@ -176,6 +158,9 @@ export default {
|
|
|
176
158
|
if (_.isEmpty(this.block.metadata.config.launch_type)) {
|
|
177
159
|
this.block.metadata.config.launch_type = 'new_window'
|
|
178
160
|
}
|
|
161
|
+
if (!_.isBoolean(this.block.metadata.config.display_title)) {
|
|
162
|
+
this.$set(this.block.metadata.config, 'display_title', true)
|
|
163
|
+
}
|
|
179
164
|
},
|
|
180
165
|
mounted() {},
|
|
181
166
|
methods: {},
|