summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/packages_and_registries/harbor_registry/components/list/harbor_list.vue
blob: c1b5367c96abaab2859155add72395ca67fba0ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<script>
import RegistryList from '~/packages_and_registries/shared/components/registry_list.vue';
import HarborListRow from '~/packages_and_registries/harbor_registry/components/list/harbor_list_row.vue';

export default {
  name: 'HarborList',
  components: {
    RegistryList,
    HarborListRow,
  },
  props: {
    images: {
      type: Array,
      required: true,
    },
    metadataLoading: {
      type: Boolean,
      default: false,
      required: false,
    },
    pageInfo: {
      type: Object,
      required: true,
    },
  },
};
</script>

<template>
  <registry-list
    :items="images"
    :hidden-delete="true"
    :pagination="pageInfo"
    id-property="name"
    @prev-page="$emit('prev-page')"
    @next-page="$emit('next-page')"
  >
    <template #default="{ item }">
      <harbor-list-row :item="item" :metadata-loading="metadataLoading" />
    </template>
  </registry-list>
</template>