44-->
55
66<template >
7- <NcAppContent :page-heading =" t (' forms' , ' Results ' )" >
7+ <NcAppContent :page-heading =" t (' forms' , ' Responses ' )" >
88 <NcDialog
99 :open .sync =" showLinkedFileNotAvailableDialog "
1010 :name =" t (' forms' , ' Linked file not available' )"
192192 <!-- Empty search results -->
193193 <NcEmptyContent
194194 v-else-if =" noFilteredSubmissions && submissionSearch .length > 0 "
195- :name =" t (' forms' , ' No results found' )"
195+ :name =" t (' forms' , ' No responses found' )"
196196 class="forms-emptycontent"
197197 :description ="
198- t (' forms' , ' No results found for {submissionSearch}' , {
198+ t (' forms' , ' No responses found for \' {submissionSearch}\' ' , {
199199 submissionSearch ,
200200 })
201201 " >
209209 v-else-if =" noSubmissions "
210210 :name =" t (' forms' , ' No responses yet' )"
211211 class="forms-emptycontent"
212- :description ="
213- t (' forms' , ' Results of submitted forms will show up here' )
214- " >
212+ :description =" t (' forms' , ' Responses will show up here' )" >
215213 <template #icon >
216214 <IconPoll :size =" 64 " />
217215 </template >
259257 <!-- Confirmation dialog for deleting all submissions -->
260258 <NcDialog
261259 :open .sync =" showConfirmDeleteDialog "
262- :name =" t (' forms' , ' Delete submissions' )"
263- :message ="
264- t (
265- ' forms' ,
266- ' Are you sure you want to delete all responses of {title}?' ,
267- { title: formTitle },
268- )
269- "
260+ :name =" t (' forms' , ' Delete responses' )"
261+ :message =" t (' forms' , ' Are you sure you want to delete all responses?' )"
270262 :buttons =" confirmDeleteButtons " />
271263 </NcAppContent >
272264</template >
@@ -435,7 +427,7 @@ export default {
435427 },
436428 },
437429 {
438- label: t (' forms' , ' Delete submissions ' ),
430+ label: t (' forms' , ' Delete responses ' ),
439431 icon: IconDeleteSvg,
440432 type: ' error' ,
441433 callback : () => {
@@ -565,7 +557,7 @@ export default {
565557
566558 async loadFormResults () {
567559 this .loadingResults = true
568- logger .debug (` Loading results for form ${ this .form .hash } ` )
560+ logger .debug (` Loading responses for form ${ this .form .hash } ` )
569561
570562 try {
571563 let response = null
@@ -598,8 +590,8 @@ export default {
598590 this .questions = data .questions
599591 this .filteredSubmissionsCount = data .filteredSubmissionsCount
600592 } catch (error) {
601- logger .error (' Error while loading results ' , { error })
602- showError (t (' forms' , ' There was an error while loading the results ' ))
593+ logger .error (' Error while loading responses ' , { error })
594+ showError (t (' forms' , ' An error occurred while loading responses ' ))
603595 } finally {
604596 this .loadingResults = false
605597 }
@@ -777,16 +769,16 @@ export default {
777769 },
778770 ),
779771 )
780- showSuccess (t (' forms' , ' Submission deleted' ))
772+ showSuccess (t (' forms' , ' Response deleted' ))
781773 const index = this .submissions .findIndex (
782774 (search ) => search .id === id,
783775 )
784776 this .submissions .splice (index, 1 )
785777 emit (' forms:last-updated:set' , this .form .id )
786778 } catch (error) {
787- logger .error (` Error while removing response ${ id} ` , { error })
779+ logger .error (` Error while deleting response ${ id} ` , { error })
788780 showError (
789- t (' forms' , ' There was an error while removing this response' ),
781+ t (' forms' , ' An error occurred while deleting this response' ),
790782 )
791783 } finally {
792784 this .loadingResults = false
@@ -810,8 +802,8 @@ export default {
810802 this .form .submissionCount = 0
811803 emit (' forms:last-updated:set' , this .form .id )
812804 } catch (error) {
813- logger .error (' Error while removing responses' , { error })
814- showError (t (' forms' , ' There was an error while removing responses' ))
805+ logger .error (' Error while deleting responses' , { error })
806+ showError (t (' forms' , ' An error occurred while deleting responses' ))
815807 } finally {
816808 this .loadingResults = false
817809 }
0 commit comments