Skip to content

Commit

Permalink
contactmoment is one word
Browse files Browse the repository at this point in the history
  • Loading branch information
RalkeyOfficial committed Dec 3, 2024
1 parent 23e30f4 commit fa6b73d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions src/modals/contactMomenten/ContactMomentenForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { contactMomentStore, navigationStore, taakStore, zaakStore } from '../..
:close-on-click-outside="false"
@closing="closeModalFromButton()">
<NcNoteCard v-if="success" type="success">
<p>Contact moment succesvol opgeslagen</p>
<p>Contactmoment succesvol opgeslagen</p>
</NcNoteCard>
<NcNoteCard v-if="error" type="error">
<p>{{ error }}</p>
Expand Down Expand Up @@ -350,7 +350,7 @@ export default {
this.$emit('close-modal')
},
// Contact moment functions
// Contactmoment functions
addContactMoment() {
this.loading = true
Expand Down
24 changes: 12 additions & 12 deletions src/views/widgets/ContactMomentenWidget.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { navigationStore, contactMomentStore, klantStore } from '../../store/sto
@edit="onEdit"
@sluiten="onSluiten">
<template #empty-content>
<NcEmptyContent name="Geen contact momenten gevonden">
<NcEmptyContent name="Geen contactmomenten gevonden">
<template #icon>
<ChatOutline />
</template>
Expand All @@ -25,7 +25,7 @@ import { navigationStore, contactMomentStore, klantStore } from '../../store/sto
<template #icon>
<Plus :size="20" />
</template>
Contact moment starten
Contactmoment starten
</NcButton>

<ContactMomentenForm v-if="isContactMomentFormOpen"
Expand Down Expand Up @@ -68,11 +68,11 @@ export default {
return {
loading: false,
/**
* determines if the contact moment form modal is open
* determines if the contactmoment form modal is open
*/
isContactMomentFormOpen: false,
contactMomentItems: [],
// contact moment form props
// contactmoment form props
contactMomentId: null,
isView: false,
// widget options
Expand Down Expand Up @@ -136,7 +136,7 @@ export default {
},
// === MODAL CONTROL ===
/**
* Opens the contact moment form modal in create/add mode
* Opens the contactmoment form modal in create/add mode
*/
openModal() {
this.isContactMomentFormOpen = true
Expand All @@ -153,32 +153,32 @@ export default {
},
// === EVENTS ===
/**
* runs when the user clicks on the show button, and opens the contact moment form modal in view mode
* @param {{id: number}} event - the contact moment item received from the widget
* runs when the user clicks on the show button, and opens the contactmoment form modal in view mode
* @param {{id: number}} event - the contactmoment item received from the widget
*/
onShow(event) {
this.contactMomentId = event.id
this.isContactMomentFormOpen = true
this.isView = true
},
/**
* runs when the user clicks on the edit button, and opens the contact moment form modal in edit mode
* @param {{id: number}} event - the contact moment item received from the widget
* runs when the user clicks on the edit button, and opens the contactmoment form modal in edit mode
* @param {{id: number}} event - the contactmoment item received from the widget
*/
onEdit(event) {
this.contactMomentId = event.id
this.isContactMomentFormOpen = true
this.isView = false
},
/**
* runs when the user clicks on the "sluiten" button, and changes the status of the contact moment to 'gesloten'
* @param {{id: number}} event - the contact moment item received from the widget
* runs when the user clicks on the "sluiten" button, and changes the status of the contactmoment to 'gesloten'
* @param {{id: number}} event - the contactmoment item received from the widget
*/
async onSluiten(event) {
const { data } = await contactMomentStore.getContactMoment(event.id)
if (data?.status === 'gesloten') {
console.info('Contact moment is already closed')
console.info('Contactmoment is already closed')
return
}
Expand Down

0 comments on commit fa6b73d

Please sign in to comment.