From 6f038c5e2110b1afedfa833ea69b41ed1dd6bc03 Mon Sep 17 00:00:00 2001 From: jleifeld Date: Fri, 20 Dec 2024 08:56:36 +0000 Subject: [PATCH] Apply code formatting and fixable ESLint issues --- .../src/components/form/mt-text-editor/mt-text-editor.vue | 7 +++---- .../mt-data-table-settings/mt-data-table-settings.vue | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/component-library/src/components/form/mt-text-editor/mt-text-editor.vue b/packages/component-library/src/components/form/mt-text-editor/mt-text-editor.vue index 5f8bea158..c20582b40 100644 --- a/packages/component-library/src/components/form/mt-text-editor/mt-text-editor.vue +++ b/packages/component-library/src/components/form/mt-text-editor/mt-text-editor.vue @@ -144,7 +144,7 @@ import Table from "@tiptap/extension-table"; import TableCell from "@tiptap/extension-table-cell"; import TableHeader from "@tiptap/extension-table-header"; import TableRow from "@tiptap/extension-table-row"; -import Placeholder from '@tiptap/extension-placeholder' +import Placeholder from "@tiptap/extension-placeholder"; import mtTextEditorToolbar, { type CustomButton } from "./_internal/mt-text-editor-toolbar.vue"; import mtTextEditorToolbarButtonColor, { colorButton, @@ -247,7 +247,7 @@ const props = defineProps({ * * @example {"code": 500, "detail": "Error while saving"} */ - error: { + error: { type: Object, required: false, default: null, @@ -256,7 +256,7 @@ const props = defineProps({ /** * A label for your text field. Usually used to guide the user what value this field controls. */ - label: { + label: { type: String, required: false, default: null, @@ -687,5 +687,4 @@ label { .mt-text-editor--error label { color: var(--color-text-critical-default); } - diff --git a/packages/component-library/src/components/table-and-list/mt-data-table/sub-components/mt-data-table-settings/mt-data-table-settings.vue b/packages/component-library/src/components/table-and-list/mt-data-table/sub-components/mt-data-table-settings/mt-data-table-settings.vue index 2bc7c6b12..1b1958957 100644 --- a/packages/component-library/src/components/table-and-list/mt-data-table/sub-components/mt-data-table-settings/mt-data-table-settings.vue +++ b/packages/component-library/src/components/table-and-list/mt-data-table/sub-components/mt-data-table-settings/mt-data-table-settings.vue @@ -234,7 +234,7 @@ export default defineComponent({ return { id: column.property, label: column.label, - parentGroup: column.visible ?? true ? "visible" : "hidden", + parentGroup: (column.visible ?? true) ? "visible" : "hidden", position: column.position, isVisible: column.visible ?? true, isHidable: isPrimaryColumn(column) ? false : true,