diff --git a/resources/js/components/feedback/FeedbackEditor.vue b/resources/js/components/feedback/FeedbackEditor.vue index 0e1e9f5c..656cc271 100644 --- a/resources/js/components/feedback/FeedbackEditor.vue +++ b/resources/js/components/feedback/FeedbackEditor.vue @@ -50,7 +50,6 @@ export default { showImpression: { type: Boolean, default: false }, username: { type: String, default: null }, collaborationKey: { type: String, default: null }, - signalingServers: { type: Array, default: null }, }, data() { const extensions = [ @@ -121,9 +120,10 @@ export default { withCollaboration (extensions) { const ydoc = new Y.Doc() const feedbackKey = 'qualix-feedback-' + this.courseId + '-' + this.collaborationKey.substr(0, 8) + const signalingServers = window.Laravel.signalingServers const provider = new WebrtcProvider(feedbackKey, ydoc, { password: this.collaborationKey.substr(8), - ...(this.signalingServers ? { signaling: this.signalingServers } : {}) + ...(signalingServers ? { signaling: signalingServers } : {}), }) return extensions.concat([ Collaboration.configure({ document: ydoc }), diff --git a/resources/js/components/feedback/InputFeedbackEditorLarge.vue b/resources/js/components/feedback/InputFeedbackEditorLarge.vue index 0edfbbdd..34aee1ae 100644 --- a/resources/js/components/feedback/InputFeedbackEditorLarge.vue +++ b/resources/js/components/feedback/InputFeedbackEditorLarge.vue @@ -7,7 +7,6 @@ :name="name" :class="{ 'form-control': !readonly, 'is-invalid': errorMessage || markInvalid }" :username="username" - :signaling-servers="signalingServers" v-model="currentValue" v-bind="$attrs" @localinput="$emit('localinput')"> @@ -35,9 +34,6 @@ export default { username () { return window.Laravel.username }, - signalingServers () { - return window.Laravel.signalingServers - }, } } diff --git a/resources/js/components/feedback/requirements_matrix/RequirementsMatrixRow.vue b/resources/js/components/feedback/requirements_matrix/RequirementsMatrixRow.vue index 3178b74d..379ff608 100644 --- a/resources/js/components/feedback/requirements_matrix/RequirementsMatrixRow.vue +++ b/resources/js/components/feedback/requirements_matrix/RequirementsMatrixRow.vue @@ -131,9 +131,10 @@ export default { } const ydoc = new Y.Doc() const feedbackKey = 'qualix-feedback-' + this.feedback.feedback_data.course_id + '-' + this.feedback.collaborationKey.substr(0, 8) + const signalingServers = window.Laravel.signalingServers new WebrtcProvider(feedbackKey, ydoc, { password: this.feedback.collaborationKey.substr(8), - ...(this.signalingServers ? { signaling: this.signalingServers } : {}) + ...(signalingServers ? { signaling: signalingServers } : {}), }) return [Collaboration.configure({ document: ydoc })] },