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.
		
		
		
		
		
			
		
			
				
					
					
						
							33 lines
						
					
					
						
							921 B
						
					
					
				
			
		
		
	
	
							33 lines
						
					
					
						
							921 B
						
					
					
				<template>
 | 
						|
  <div v-if="item && isCurrentTeacher">
 | 
						|
    <DocumentsForm
 | 
						|
      v-model="item"
 | 
						|
      @submit="updateItemWithFormData"
 | 
						|
    >
 | 
						|
      <EditLinks
 | 
						|
        v-model="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>
 | 
						|
 |