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,10 @@ 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 (
595+ t (' forms' , ' There was an error while loading the responses' ),
596+ )
603597 } finally {
604598 this .loadingResults = false
605599 }
@@ -777,16 +771,16 @@ export default {
777771 },
778772 ),
779773 )
780- showSuccess (t (' forms' , ' Submission deleted' ))
774+ showSuccess (t (' forms' , ' Response deleted' ))
781775 const index = this .submissions .findIndex (
782776 (search ) => search .id === id,
783777 )
784778 this .submissions .splice (index, 1 )
785779 emit (' forms:last-updated:set' , this .form .id )
786780 } catch (error) {
787- logger .error (` Error while removing response ${ id} ` , { error })
781+ logger .error (` Error while deleting response ${ id} ` , { error })
788782 showError (
789- t (' forms' , ' There was an error while removing this response' ),
783+ t (' forms' , ' There was an error while deleting this response' ),
790784 )
791785 } finally {
792786 this .loadingResults = false
@@ -810,8 +804,8 @@ export default {
810804 this .form .submissionCount = 0
811805 emit (' forms:last-updated:set' , this .form .id )
812806 } catch (error) {
813- logger .error (' Error while removing responses' , { error })
814- showError (t (' forms' , ' There was an error while removing responses' ))
807+ logger .error (' Error while deleting responses' , { error })
808+ showError (t (' forms' , ' There was an error while deleting responses' ))
815809 } finally {
816810 this .loadingResults = false
817811 }
0 commit comments