@@ -8,6 +8,7 @@ import { generateOcsUrl } from '@nextcloud/router'
88import axios from '@nextcloud/axios'
99import debounce from 'debounce'
1010
11+ import { INPUT_DEBOUNCE_MS } from '../models/Constants.ts'
1112import logger from '../utils/Logger.js'
1213import OcsResponse2Data from '../utils/OcsResponse2Data.js'
1314import Question from '../components/Questions/Question.vue'
@@ -214,7 +215,7 @@ export default {
214215 onTitleChange : debounce ( function ( text ) {
215216 this . $emit ( 'update:text' , text )
216217 this . saveQuestionProperty ( 'text' , text )
217- } , 400 ) ,
218+ } , INPUT_DEBOUNCE_MS ) ,
218219
219220 /**
220221 * Forward the description change to the parent and store to db
@@ -224,7 +225,7 @@ export default {
224225 onDescriptionChange : debounce ( function ( description ) {
225226 this . $emit ( 'update:description' , description )
226227 this . saveQuestionProperty ( 'description' , description )
227- } , 400 ) ,
228+ } , INPUT_DEBOUNCE_MS ) ,
228229
229230 /**
230231 * Forward the required change to the parent and store to db
@@ -234,7 +235,7 @@ export default {
234235 onRequiredChange : debounce ( function ( isRequiredValue ) {
235236 this . $emit ( 'update:isRequired' , isRequiredValue )
236237 this . saveQuestionProperty ( 'isRequired' , isRequiredValue )
237- } , 400 ) ,
238+ } , INPUT_DEBOUNCE_MS ) ,
238239
239240 /**
240241 * Create mapper to forward the required change to the parent and store to db
@@ -247,7 +248,7 @@ export default {
247248 const newExtraSettings = { ...this . extraSettings , ...newSettings }
248249 this . $emit ( 'update:extraSettings' , newExtraSettings )
249250 this . saveQuestionProperty ( 'extraSettings' , newExtraSettings )
250- } , 400 ) ,
251+ } , INPUT_DEBOUNCE_MS ) ,
251252
252253 /**
253254 * Forward the technical-name change to the parent and store to db
@@ -257,7 +258,7 @@ export default {
257258 onNameChange : debounce ( function ( name ) {
258259 this . $emit ( 'update:name' , name )
259260 this . saveQuestionProperty ( 'name' , name )
260- } , 400 ) ,
261+ } , INPUT_DEBOUNCE_MS ) ,
261262
262263 /**
263264 * Forward the required change to the parent and store to db
0 commit comments