Courses: Fix visibility link

pull/3924/head
Julio Montoya 4 years ago
parent b387573aba
commit 722b3276da
  1. 4
      assets/vue/views/course/Home.vue

@ -140,9 +140,9 @@ export default {
}
function changeVisibility(course, tool) {
axios.post(ENTRYPOINT + '../r/course_tool/links/' + tool.resourceNode.id + '/change_visibility').then(response => {
axios.post(ENTRYPOINT + '../r/course_tool/links/' + tool.ctool.resourceNode.id + '/change_visibility').then(response => {
if (response.data.ok) {
tool.resourceNode.resourceLinks[0].visibility = response.data.visibility;
tool.ctool.resourceNode.resourceLinks[0].visibility = response.data.visibility;
}
}).catch(function (error) {
console.log(error);

Loading…
Cancel
Save