Skip to content

Commit d8b968a

Browse files
author
lafricain79
committed
fix: fix ESLint formatting issues
1 parent f5f78e5 commit d8b968a

2 files changed

Lines changed: 20 additions & 5 deletions

File tree

src/components/SidebarTabs/SettingsSidebarTab.vue

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@
8585
@update:model-value="onMaxSubmissionsChange">
8686
{{ t('forms', 'Limit number of responses') }}
8787
</NcCheckboxRadioSwitch>
88-
<div v-show="hasMaxSubmissions && !formArchived" class="settings-div--indent">
88+
<div
89+
v-show="hasMaxSubmissions && !formArchived"
90+
class="settings-div--indent">
8991
<NcInputField
9092
v-model="maxSubmissionsValue"
9193
type="number"
@@ -94,7 +96,12 @@
9496
:label="t('forms', 'Maximum number of responses')"
9597
@update:model-value="onMaxSubmissionsValueChange" />
9698
<p class="settings-hint">
97-
{{ t('forms', 'Form will be closed automatically when the limit is reached.') }}
99+
{{
100+
t(
101+
'forms',
102+
'Form will be closed automatically when the limit is reached.',
103+
)
104+
}}
98105
</p>
99106
</div>
100107
<NcCheckboxRadioSwitch
@@ -200,8 +207,8 @@ import { loadState } from '@nextcloud/initial-state'
200207
import moment from '@nextcloud/moment'
201208
import { directive as ClickOutside } from 'v-click-outside'
202209
import NcButton from '@nextcloud/vue/components/NcButton'
203-
import NcInputField from '@nextcloud/vue/components/NcInputField'
204210
import NcCheckboxRadioSwitch from '@nextcloud/vue/components/NcCheckboxRadioSwitch'
211+
import NcInputField from '@nextcloud/vue/components/NcInputField'
205212
import NcDateTimePicker from '@nextcloud/vue/components/NcDateTimePicker'
206213
import NcIconSvgWrapper from '@nextcloud/vue/components/NcIconSvgWrapper'
207214
import NcNoteCard from '@nextcloud/vue/components/NcNoteCard'
@@ -324,7 +331,10 @@ export default {
324331
},
325332
326333
hasMaxSubmissions() {
327-
return this.form.maxSubmissions !== null && this.form.maxSubmissions !== undefined
334+
return (
335+
this.form.maxSubmissions !== null
336+
&& this.form.maxSubmissions !== undefined
337+
)
328338
},
329339
330340
maxSubmissionsValue: {

src/views/Submit.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,12 @@
7878
v-else-if="isMaxSubmissionsReached"
7979
class="forms-emptycontent"
8080
:name="t('forms', 'Form is full')"
81-
:description="t('forms', 'This form has reached the maximum number of answers')">
81+
:description="
82+
t(
83+
'forms',
84+
'This form has reached the maximum number of answers',
85+
)
86+
">
8287
<template #icon>
8388
<NcIconSvgWrapper :svg="IconCheckSvg" size="64" />
8489
</template>

0 commit comments

Comments
 (0)