Browse Source

chore(nc-gui): lint

pull/7786/head
Ramesh Mane 7 months ago
parent
commit
ed0987b3d3
  1. 2
      packages/nc-gui/components/dlg/share-and-collaborate/SharePage.vue
  2. 13
      packages/nc-gui/components/smartsheet/Form.vue

2
packages/nc-gui/components/dlg/share-and-collaborate/SharePage.vue

@ -389,8 +389,8 @@ async function savePreFilledMode() {
<div class="flex flex-row justify-between">
<div class="text-black">{{ $t('activity.preFilledFields.title') }}</div>
<a-switch
:checked="formPreFill.preFillEnabled"
v-e="['c:share:view:surver-mode:toggle']"
:checked="formPreFill.preFillEnabled"
data-testid="nc-modal-share-view__surveyMode"
@update:checked="
(value) => {

13
packages/nc-gui/components/smartsheet/Form.vue

@ -42,7 +42,6 @@ import {
useRoles,
useViewColumnsOrThrow,
useViewData,
watch,
useViewsStore,
} from '#imports'
import type { ImageCropperConfig } from '~/lib'
@ -71,13 +70,7 @@ const enum NcForm {
subheading = 'nc-form-sub-heading',
}
const { isMobileMode, user, getBaseUrl, appInfo } = useGlobal()
const { dashboardUrl } = useDashboard()
const workspaceStore = useWorkspace()
const { copy } = useCopy()
const { isMobileMode, user } = useGlobal()
const { $api, $e } = useNuxtApp()
@ -239,7 +232,6 @@ async function submitForm() {
submitted.value = true
}
async function clearForm() {
if (isLocked.value || !isUIAllowed('dataInsert')) return
@ -1322,7 +1314,7 @@ useEventListener(
>
{{ $t('activity.clearForm') }}
</NcButton>
<div class="flex items-center gap-3">
<NcButton
html-type="submit"
type="primary"
@ -1336,7 +1328,6 @@ useEventListener(
{{ $t('general.submit') }}
</NcButton>
</div>
</div>
</a-form>
<div v-if="!parseProp(formViewData?.meta).hide_branding" class="px-8 lg:px-12">

Loading…
Cancel
Save