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
931 B

  1. <template>
  2. <v-card>
  3. <v-card-title class="mb-2">
  4. <document-action-menu />
  5. <document-deletion-button class="ms-2" />
  6. <v-spacer />
  7. <document-bulk-deletion-button />
  8. </v-card-title>
  9. <document-list />
  10. </v-card>
  11. </template>
  12. <script>
  13. import DocumentList from '@/components/containers/documents/DocumentList'
  14. import DocumentActionMenu from '@/components/containers/documents/DocumentActionMenu'
  15. import DocumentDeletionButton from '@/components/containers/documents/DocumentDeletionButton'
  16. import DocumentBulkDeletionButton from '@/components/containers/documents/DocumentBulkDeletionButton'
  17. export default {
  18. layout: 'project',
  19. components: {
  20. DocumentList,
  21. DocumentActionMenu,
  22. DocumentDeletionButton,
  23. DocumentBulkDeletionButton
  24. },
  25. validate({ params, query }) {
  26. return /^\d+$/.test(params.id) && /^\d+|$/.test(query.limit) && /^\d+|$/.test(query.offset)
  27. }
  28. }
  29. </script>