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

34 lines
919 B

<template>
<div v-if="item && isCurrentTeacher">
<DocumentsForm
v-model="item"
@submit="updateItemWithFormData"
>
<EditLinks
:item="item"
:show-share-with-user="false"
:show-status="false"
links-type="users"
/>
</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>