Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
chamilo-lms/assets/vue/views/documents/Update.vue

38 lines
900 B

<template>
<div v-if="item && isCurrentTeacher">
<DocumentsForm
v-model="item"
@submit="updateItemWithFormData"
>
<EditLinks
:item="item"
links-type="users"
show-share-with-user
/>
</DocumentsForm>
<Loading :visible="isLoading" />
</div>
</template>
<script setup>
import { useStore } from 'vuex';
import DocumentsForm from '../../components/documents/Form.vue';
import Loading from '../../components/Loading.vue';
import EditLinks from "../../components/resource_links/EditLinks.vue";
import { useDatatableUpdate } from '../../composables/datatableUpdate';
import { computed } from 'vue';
const store = useStore();
const isCurrentTeacher = computed(() => store.getters['security/isCurrentTeacher']);
const {
item,
retrieve,
updateItemWithFormData,
isLoading,
} = useDatatableUpdate('Documents');
retrieve();
</script>