Skip to content

Commit

Permalink
adapt counter page
Browse files Browse the repository at this point in the history
  • Loading branch information
bozana committed Aug 29, 2024
1 parent 94ac2e2 commit 49883fa
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/components/Container/CounterReportsPage.vue

This file was deleted.

2 changes: 2 additions & 0 deletions src/components/Container/Page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ import ModalManager from '@/components/Modal/ModalManager.vue';
import PkpAnnouncer from '@/components/Announcer/Announcer.vue';
import ReviewerSubmissionPage from '@/pages/reviewerSubmission/ReviewerSubmissionPage.vue';
import CounterReportsPage from '@/pages/counter/CounterReportsPage.vue';
export default {
name: 'Page',
components: {
PkpAnnouncer,
ModalManager,
ReviewerSubmissionPage,
CounterReportsPage,
},
extends: Container,
data() {
Expand Down
31 changes: 31 additions & 0 deletions src/pages/counter/CounterReportsPage.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<template>
<h1 class="app__pageHeading">
{{ title }}
</h1>
<p v-html="description" />
<Notification
v-if="usageNotPossible"
type="warning"
class="pkpNotification--backendPage__header"
>
{{ t('manager.statistics.counterR5Reports.usageNotPossible') }}
</Notification>
<Panel>
<PanelSection>
<CounterReportsListPanel v-bind="counterReportsListPanel" @set="set" />
</PanelSection>
</Panel>
</template>

<script setup>
import Panel from '@/components/Panel/Panel.vue';
import PanelSection from '@/components/Panel/PanelSection.vue';
import CounterReportsListPanel from '@/components/ListPanel/counter/CounterReportsListPanel.vue';
defineProps({
counterReportsListPanel: {type: Array, required: true},
usageNotPossible: {type: Boolean, required: true},
title: {type: String, required: true},
description: {type: String, required: true},
});
</script>

0 comments on commit 49883fa

Please sign in to comment.