Skip to content

Commit

Permalink
fix collapse pagination
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Jogeleit <frank.jogeleit@lovoo.com>
  • Loading branch information
Frank Jogeleit committed Feb 29, 2024
1 parent 7660069 commit 2afa9be
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
4 changes: 2 additions & 2 deletions charts/ui/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: ui
description: Policy Reporter UI
type: application
version: 0.0.23
appVersion: "2.0.0-alpha.17"
version: 0.0.24
appVersion: "2.0.0-alpha.18"

icon: https://github.com/kyverno/kyverno/raw/main/img/logo.png
home: https://kyverno.github.io/policy-reporter-ui
Expand Down
2 changes: 1 addition & 1 deletion charts/ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Policy Reporter UI

![Version: 0.0.23](https://img.shields.io/badge/Version-0.0.23-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.0.0-alpha.17](https://img.shields.io/badge/AppVersion-2.0.0--alpha.17-informational?style=flat-square)
![Version: 0.0.24](https://img.shields.io/badge/Version-0.0.24-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.0.0-alpha.18](https://img.shields.io/badge/AppVersion-2.0.0--alpha.18-informational?style=flat-square)

## Documentation

Expand Down
2 changes: 1 addition & 1 deletion frontend/modules/core/components/graph/SourcesStatus.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@

<script setup lang="ts">
import StatusBtn from "~/components/StatusBtn.vue";
import { type Dashboard, Status, Findings } from "~/modules/core/types";
import { type Dashboard, Status, type Findings } from "~/modules/core/types";
const props = defineProps<{ data: Dashboard; hideCluster?: boolean }>();
Expand Down
14 changes: 8 additions & 6 deletions frontend/modules/core/components/resource/List.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@
<CollapseBtn v-model="open" :disabled="!data.items.length" />
</template>
</v-toolbar>
<v-list v-if="data?.items?.length && open" lines="two" class="pt-0">
<resource-item v-for="item in data.items" :key="item.id" :item="item" :details="details" :filter="filter" />
</v-list>
<template v-if="data.count > options.offset">
<v-divider />
<v-pagination v-model="options.page" :length="length" class="my-4" />
<template v-if="open">
<v-list v-if="data?.items?.length" lines="two" class="pt-0">
<resource-item v-for="item in data.items" :key="item.id" :item="item" :details="details" :filter="filter" />
</v-list>
<template v-if="data.count > options.offset">
<v-divider />
<v-pagination v-model="options.page" :length="length" class="my-4" />
</template>
</template>
<template v-if="!pending && !(data.items.length)">
<v-divider />
Expand Down

0 comments on commit 2afa9be

Please sign in to comment.