File tree Expand file tree Collapse file tree
playwright/support/sections Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,8 +56,8 @@ export class FormSection {
5656 private getFormUpdatedPromise ( ) : Promise < Response > {
5757 return this . page . waitForResponse (
5858 ( response ) =>
59- response . request ( ) . method ( ) === 'PATCH' &&
60- response
59+ response . request ( ) . method ( ) === 'PATCH'
60+ && response
6161 . request ( )
6262 . url ( )
6363 . includes ( '/ocs/v2.php/apps/forms/api/v3/forms/' ) ,
Original file line number Diff line number Diff line change @@ -242,8 +242,8 @@ export default {
242242 */
243243 disabledDates (date ) {
244244 return (
245- (this .dateMin && date < this .dateMin ) ||
246- (this .dateMax && date > this .dateMax )
245+ (this .dateMin && date < this .dateMin )
246+ || (this .dateMax && date > this .dateMax )
247247 )
248248 },
249249
Original file line number Diff line number Diff line change @@ -240,8 +240,8 @@ export default {
240240 })
241241
242242 this .maxFileSizeValue =
243- this .extraSettings .maxFileSize /
244- FILE_SIZE_UNITS [this .maxFileSizeUnit ]
243+ this .extraSettings .maxFileSize
244+ / FILE_SIZE_UNITS [this .maxFileSizeUnit ]
245245 }
246246 },
247247
@@ -259,8 +259,8 @@ export default {
259259 formData .append (' files[]' , file)
260260
261261 if (
262- this .extraSettings .maxFileSize > 0 &&
263- file .size > this .extraSettings .maxFileSize
262+ this .extraSettings .maxFileSize > 0
263+ && file .size > this .extraSettings .maxFileSize
264264 ) {
265265 showError (
266266 t (
Original file line number Diff line number Diff line change @@ -436,8 +436,8 @@ export default {
436436 this .onExtraSettingsChange ({ optionsLimitMin: undefined })
437437 } else if (min) {
438438 if (
439- this .extraSettings .optionsLimitMax &&
440- min > this .extraSettings .optionsLimitMax
439+ this .extraSettings .optionsLimitMax
440+ && min > this .extraSettings .optionsLimitMax
441441 ) {
442442 showError (
443443 t (
Original file line number Diff line number Diff line change @@ -107,13 +107,13 @@ export default {
107107 submissionInputPlaceholder () {
108108 if (! this .readOnly ) {
109109 return (
110- this .validationObject .createPlaceholder ||
111- this .answerType .createPlaceholder
110+ this .validationObject .createPlaceholder
111+ || this .answerType .createPlaceholder
112112 )
113113 }
114114 return (
115- this .validationObject .submitPlaceholder ||
116- this .answerType .submitPlaceholder
115+ this .validationObject .submitPlaceholder
116+ || this .answerType .submitPlaceholder
117117 )
118118 },
119119 /**
@@ -157,8 +157,8 @@ export default {
157157 // If the browsers validation succeeds either the browser does not implement a validation
158158 // or it is valid, so we double check by running our custom validation.
159159 if (
160- ! input .checkValidity () ||
161- ! this .validationObject .validate (
160+ ! input .checkValidity ()
161+ || ! this .validationObject .validate (
162162 value,
163163 splitRegex (this .validationRegex ),
164164 )
Original file line number Diff line number Diff line change @@ -212,11 +212,11 @@ export default {
212212 answersModels .unshift ({
213213 id: 0 ,
214214 text:
215- noResponseCount +
216- ' (' +
217- noResponsePercentage +
218- ' %): ' +
219- t (' forms' , ' No response' ),
215+ noResponseCount
216+ + ' ('
217+ + noResponsePercentage
218+ + ' %): '
219+ + t (' forms' , ' No response' ),
220220 })
221221
222222 return answersModels
Original file line number Diff line number Diff line change @@ -180,8 +180,8 @@ export default {
180180 */
181181 hasCustomSubmissionMessage () {
182182 return (
183- this .form ? .submissionMessage !== undefined &&
184- this .form ? .submissionMessage !== null
183+ this .form ? .submissionMessage !== undefined
184+ && this .form ? .submissionMessage !== null
185185 )
186186 },
187187
Original file line number Diff line number Diff line change @@ -61,8 +61,8 @@ export default {
6161 (item ) =>
6262 ! this .currentShares .find (
6363 (share ) =>
64- share .shareWith === item .shareWith &&
65- share .shareType === item .shareType ,
64+ share .shareWith === item .shareWith
65+ && share .shareType === item .shareType ,
6666 ),
6767 )
6868 }
@@ -71,8 +71,8 @@ export default {
7171 (item ) =>
7272 ! this .currentShares .find (
7373 (share ) =>
74- share .shareWith === item .shareWith &&
75- share .shareType === item .shareType ,
74+ share .shareWith === item .shareWith
75+ && share .shareType === item .shareType ,
7676 ),
7777 )
7878 },
Original file line number Diff line number Diff line change @@ -119,8 +119,8 @@ export default {
119119 },
120120 canEdit () {
121121 return (
122- this .permissions .includes (this .PERMISSION_TYPES .PERMISSION_EDIT ) &&
123- ! this .archived
122+ this .permissions .includes (this .PERMISSION_TYPES .PERMISSION_EDIT )
123+ && ! this .archived
124124 )
125125 },
126126 canSeeResults () {
@@ -134,8 +134,8 @@ export default {
134134 },
135135 canOnlySubmit () {
136136 return (
137- this .permissions .length === 1 &&
138- this .permissions .includes (this .PERMISSION_TYPES .PERMISSION_SUBMIT )
137+ this .permissions .length === 1
138+ && this .permissions .includes (this .PERMISSION_TYPES .PERMISSION_SUBMIT )
139139 )
140140 },
141141 },
Original file line number Diff line number Diff line change @@ -16,10 +16,10 @@ export default {
1616 */
1717 getInternalShareLink ( formHash ) {
1818 return (
19- window . location . protocol +
20- '//' +
21- window . location . host +
22- generateUrl ( `/apps/forms/${ this . form . hash } ` )
19+ window . location . protocol
20+ + '//'
21+ + window . location . host
22+ + generateUrl ( `/apps/forms/${ this . form . hash } ` )
2323 )
2424 } ,
2525
@@ -45,8 +45,10 @@ export default {
4545 */
4646 isEmbeddingAllowed ( share ) {
4747 return (
48- share . shareType === this . SHARE_TYPES . SHARE_TYPE_LINK &&
49- share . permissions ?. includes ( this . PERMISSION_TYPES . PERMISSION_EMBED )
48+ share . shareType === this . SHARE_TYPES . SHARE_TYPE_LINK
49+ && share . permissions ?. includes (
50+ this . PERMISSION_TYPES . PERMISSION_EMBED ,
51+ )
5052 )
5153 } ,
5254
You can’t perform that action at this time.
0 commit comments