@burh/nuxt-core 1.0.483 → 1.0.485
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.
|
@@ -298,13 +298,15 @@ export default {
|
|
|
298
298
|
},
|
|
299
299
|
computed: {
|
|
300
300
|
isAllCoursesSelected() {
|
|
301
|
-
return this.coursesToSend.length === this.courses.length;
|
|
301
|
+
return ((this.coursesToSend && this.coursesToSend.length) && (this.courses && this.courses.length)) && this.coursesToSend.length === this.courses.length;
|
|
302
302
|
}
|
|
303
303
|
},
|
|
304
304
|
methods: {
|
|
305
305
|
handleSelectAllCourses() {
|
|
306
306
|
if (!this.isAllCoursesSelected) {
|
|
307
|
-
this.
|
|
307
|
+
if (this.courses && this.courses.length) {
|
|
308
|
+
this.coursesToSend = this.courses.map(course => course.id);
|
|
309
|
+
}
|
|
308
310
|
} else {
|
|
309
311
|
this.coursesToSend = [];
|
|
310
312
|
}
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
<input
|
|
92
92
|
v-if="slug"
|
|
93
93
|
id="linkShareModal"
|
|
94
|
-
:value="`${baseUrl}`"
|
|
94
|
+
:value="`${baseUrl}/${slug}`"
|
|
95
95
|
type="text"
|
|
96
96
|
class="ml-5 form-control social social-input"
|
|
97
97
|
readonly
|
|
@@ -129,12 +129,11 @@ export default {
|
|
|
129
129
|
share_token:{
|
|
130
130
|
type:String,
|
|
131
131
|
default: ''
|
|
132
|
-
}
|
|
132
|
+
},
|
|
133
133
|
},
|
|
134
134
|
data() {
|
|
135
135
|
return {
|
|
136
136
|
slug: null,
|
|
137
|
-
baseUrl:''
|
|
138
137
|
};
|
|
139
138
|
},
|
|
140
139
|
methods: {
|
|
@@ -159,6 +158,9 @@ export default {
|
|
|
159
158
|
baseBussinesUrl() {
|
|
160
159
|
return process.env.baseAppUrl;
|
|
161
160
|
},
|
|
161
|
+
baseUrl() {
|
|
162
|
+
return process.env.baseUserUrl;
|
|
163
|
+
},
|
|
162
164
|
},
|
|
163
165
|
watch: {
|
|
164
166
|
isActive(newValue) {
|