Skip to content

Commit

Permalink
Added requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
remko48 committed Nov 13, 2024
1 parent e042a16 commit 672a215
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/views/berichten/BerichtenList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import { navigationStore, berichtStore } from '../../store/store.js'
</NcActionButton>
</NcActions>
</div>
<div v-if="!!berichtStore.berichtenList?.length">
<div v-if="berichtStore.berichtenList?.length && !loading">
<NcListItem v-for="(bericht, i) in berichtStore.berichtenList"
:key="`${bericht}${i}`"
:name="bericht?.onderwerp"
Expand Down
10 changes: 1 addition & 9 deletions src/views/klanten/KlantenList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import { navigationStore, klantStore } from '../../store/store.js'
</NcActionButton>
</NcActions>
</div>
<div v-if="klantStore.klantenList">
<div v-if="klantStore.klantenList?.length && !loading">
<NcListItem v-for="(klant, i) in klantStore.klantenList"
:key="`${klant}${i}`"
:name="klant.voornaam || 'onbekend'"
Expand All @@ -54,12 +54,6 @@ import { navigationStore, klantStore } from '../../store/store.js'
</template>
Bewerken
</NcActionButton>
<NcActionButton @click="klantStore.setKlantItem(klant); deleteKlant()">
<template #icon>
<TrashCanOutline :size="20" />
</template>
Verwijderen
</NcActionButton>
</template>
</NcListItem>
</div>
Expand All @@ -86,7 +80,6 @@ import AccountOutline from 'vue-material-design-icons/AccountOutline.vue'
import Refresh from 'vue-material-design-icons/Refresh.vue'
import Plus from 'vue-material-design-icons/Plus.vue'
import Pencil from 'vue-material-design-icons/Pencil.vue'
import TrashCanOutline from 'vue-material-design-icons/TrashCanOutline.vue'
export default {
name: 'KlantenList',
Expand All @@ -101,7 +94,6 @@ export default {
AccountOutline,
Magnify,
Pencil,
TrashCanOutline,
},
data() {
return {
Expand Down
3 changes: 1 addition & 2 deletions src/views/statussen/StatussenIndex.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ import { navigationStore } from '../../store/store.js'
import { NcAppContent, NcEmptyContent, NcButton } from '@nextcloud/vue'
import StatussenList from './StatussenList.vue'
import StatusDetails from './StatusDetails.vue'
// eslint-disable-next-line n/no-missing-import
import BriefcaseAccountOutline from 'vue-material-design-icons/BriefcaseAccountOutline'
import BriefcaseAccountOutline from 'vue-material-design-icons/BriefcaseAccountOutline.vue'
export default {
name: 'StatussenIndex',
Expand Down
2 changes: 1 addition & 1 deletion src/views/taken/TakenList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import { navigationStore, taakStore } from '../../store/store.js'
</NcActionButton>
</NcActions>
</div>
<div v-if="taakStore.takenList">
<div v-if="taakStore.takenList?.length && !loading">
<NcListItem v-for="(taak, i) in taakStore.takenList"
:key="`${taak}${i}`"
:name="taak?.title"
Expand Down
2 changes: 1 addition & 1 deletion src/views/zaakTypen/ZaakTypenList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { navigationStore, zaakTypeStore } from '../../store/store.js'
</NcActions>
</div>

<div v-if="!!zaakTypeStore.zaakTypenList?.length">
<div v-if="zaakTypeStore.zaakTypenList?.length && !loading">
<NcListItem v-for="(zaaktype, i) in zaakTypeStore.zaakTypenList"
:key="`${zaaktype}${i}`"
:name="zaaktype?.name"
Expand Down
2 changes: 1 addition & 1 deletion src/views/zaken/ZakenList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import { navigationStore, zaakStore } from '../../store/store.js'
</NcActions>
</div>

<div v-if="!!zaakStore.zakenList?.length && !loading">
<div v-if="zaakStore.zakenList?.length && !loading">
<NcListItem v-for="(zaak, i) in zaakStore.zakenList"
:key="`${zaak}${i}`"
:name="zaak?.identificatie"
Expand Down

0 comments on commit 672a215

Please sign in to comment.