Skip to content

Commit

Permalink
Added Eigenschappen text and fixed catalogi bug
Browse files Browse the repository at this point in the history
  • Loading branch information
remko48 committed Aug 8, 2024
1 parent 0c4bae2 commit a09616e
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 31 deletions.
1 change: 0 additions & 1 deletion src/views/Views.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { navigationStore, searchStore } from '../store/store.js'
<Catalogi v-if="navigationStore.selected === 'catalogi'" />
<Organisations v-if="navigationStore.selected === 'organisations'" />
<Themes v-if="navigationStore.selected === 'themes'" />
<Catalogi v-if="navigationStore.selected === 'catalogi'" />
<Dashboard v-if="navigationStore.selected === 'dashboard'" :search="searchStore.search" />
<Directory v-if="navigationStore.selected === 'directory'" />
<Publications v-if="navigationStore.selected === 'publication'" />
Expand Down
65 changes: 35 additions & 30 deletions src/views/publications/PublicationDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -169,36 +169,41 @@ import { catalogiStore, metadataStore, navigationStore, publicationStore } from
<div class="tabContainer">
<BTabs content-class="mt-3" justified>
<BTab title="Eigenschappen" active>
<NcListItem v-for="(value, key, i) in publicationStore.publicationItem?.data"
:key="`${key}${i}`"
:name="key"
:bold="false"
:force-display-actions="true"
@click="publicationStore.setPublicationDataKey(key)
">
<template #icon>
<CircleOutline :class="publicationStore.publicationDataKey === key && 'selectedZaakIcon'"
disable-menu
:size="44" />
</template>
<template #subname>
{{ value }}
</template>
<template #actions>
<NcActionButton @click="editPublicationDataItem(key)">
<template #icon>
<Pencil :size="20" />
</template>
Bewerken
</NcActionButton>
<NcActionButton @click="deletePublicationDataItem(key)">
<template #icon>
<Delete :size="20" />
</template>
Verwijderen
</NcActionButton>
</template>
</NcListItem>
<div v-if="publicationStore.publicationItem?.data.length > 0">
<NcListItem v-for="(value, key, i) in publicationStore.publicationItem?.data"
:key="`${key}${i}`"
:name="key"
:bold="false"
:force-display-actions="true"
@click="publicationStore.setPublicationDataKey(key)
">
<template #icon>
<CircleOutline :class="publicationStore.publicationDataKey === key && 'selectedZaakIcon'"
disable-menu
:size="44" />
</template>
<template #subname>
{{ value }}
</template>
<template #actions>
<NcActionButton @click="editPublicationDataItem(key)">
<template #icon>
<Pencil :size="20" />
</template>
Bewerken
</NcActionButton>
<NcActionButton @click="deletePublicationDataItem(key)">
<template #icon>
<Delete :size="20" />
</template>
Verwijderen
</NcActionButton>
</template>
</NcListItem>
</div>
<div v-if="publicationStore.publicationItem?.data.length === 0" class="tabPanel">
Geen Eigenschappen gevonden
</div>
</BTab>
<BTab title="Bijlagen">
<div
Expand Down

0 comments on commit a09616e

Please sign in to comment.