Browse Source

chore(nc-gui): lint

pull/7741/head
Ramesh Mane 8 months ago
parent
commit
15d06885d1
  1. 10
      packages/nc-gui/components/cell/RichText/SelectedBubbleMenu.vue
  2. 1
      packages/nc-gui/components/smartsheet/Form.vue
  3. 2
      packages/nc-gui/pages/index/[typeOrId]/form/[viewId]/index/survey.vue

10
packages/nc-gui/components/cell/RichText/SelectedBubbleMenu.vue

@ -103,8 +103,8 @@ const onToggleLink = () => {
type="text"
:class="{ 'is-active': editor.isActive('bold') }"
:disabled="editor.isActive('codeBlock')"
@click="editor!.chain().focus().toggleBold().run()"
:tabindex="isFormField ? -1 : 0"
@click="editor!.chain().focus().toggleBold().run()"
>
<MdiFormatBold />
</NcButton>
@ -124,8 +124,8 @@ const onToggleLink = () => {
type="text"
:disabled="editor.isActive('codeBlock')"
:class="{ 'is-active': editor.isActive('italic') }"
@click=";(editor!.chain().focus() as any).toggleItalic().run()"
:tabindex="isFormField ? -1 : 0"
@click=";(editor!.chain().focus() as any).toggleItalic().run()"
>
<MdiFormatItalic />
</NcButton>
@ -145,8 +145,8 @@ const onToggleLink = () => {
type="text"
:class="{ 'is-active': editor.isActive('underline') }"
:disabled="editor.isActive('codeBlock')"
@click="editor!.chain().focus().toggleUnderline().run()"
:tabindex="isFormField ? -1 : 0"
@click="editor!.chain().focus().toggleUnderline().run()"
>
<MdiFormatUnderline />
</NcButton>
@ -165,8 +165,8 @@ const onToggleLink = () => {
type="text"
:class="{ 'is-active': editor.isActive('strike') }"
:disabled="editor.isActive('codeBlock')"
@click="editor!.chain().focus().toggleStrike().run()"
:tabindex="isFormField ? -1 : 0"
@click="editor!.chain().focus().toggleStrike().run()"
>
<MdiFormatStrikeThrough />
</NcButton>
@ -314,8 +314,8 @@ const onToggleLink = () => {
type="text"
:class="{ 'is-active': editor.isActive('link') }"
:disabled="editor.isActive('codeBlock')"
@click="onToggleLink"
:tabindex="isFormField ? -1 : 0"
@click="onToggleLink"
>
<GeneralIcon v-if="isFormField" icon="link2"></GeneralIcon>
<div v-else class="flex flex-row items-center px-0.5">

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

@ -311,7 +311,6 @@ async function showOrHideColumn(column: Record<string, any>, show: boolean, isSi
const fieldIndex = fields.value?.findIndex((f) => f?.fk_column_id === column.fk_column_id)
if (fieldIndex !== -1 && fieldIndex !== undefined && fields.value?.[fieldIndex]) {
console.log('column', column)
column.show = show
await $api.dbView.formColumnUpdate(column.id, column)

2
packages/nc-gui/pages/index/[typeOrId]/form/[viewId]/index/survey.vue

@ -394,7 +394,7 @@ onMounted(() => {
{{ $t('msg.info.thankYou') }}
</span>
</template>
<template #description v-if="!sharedFormView?.success_msg?.trim()">
<template v-if="!sharedFormView?.success_msg?.trim()" #description>
{{ $t('msg.info.submittedFormData') }}
</template>
</a-alert>

Loading…
Cancel
Save