From 52c46c2376bad4cd75c8128db10eeb7c3cfc092c Mon Sep 17 00:00:00 2001 From: Cleopatra Enjeck M Date: Sun, 4 Feb 2024 10:29:41 +0100 Subject: [PATCH] chore: fix lint Signed-off-by: Cleopatra Enjeck M --- src/modules/main/partials/TableView.vue | 2 +- src/modules/modals/CreateColumn.vue | 1 - src/modules/modals/CreateRow.vue | 1 - src/modules/modals/DeleteColumn.vue | 1 - src/modules/modals/Modals.vue | 10 ++++++---- src/shared/components/ncTable/sections/CustomTable.vue | 2 +- 6 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/modules/main/partials/TableView.vue b/src/modules/main/partials/TableView.vue index f58cadc8c..957fcd426 100644 --- a/src/modules/main/partials/TableView.vue +++ b/src/modules/main/partials/TableView.vue @@ -117,7 +117,7 @@ export default { emit('tables:column:edit', { column, isView: this.isView, elementId: this.element.id }) }, deleteColumn(column) { - emit('tables:column:delete', {column, isView: this.isView, elementId: this.element.id}) + emit('tables:column:delete', { column, isView: this.isView, elementId: this.element.id }) }, createRow() { emit('tables:row:create', { column: this.columns, isView: this.isView, elementId: this.element.id }) diff --git a/src/modules/modals/CreateColumn.vue b/src/modules/modals/CreateColumn.vue index 1608d9c75..e31247cfb 100644 --- a/src/modules/modals/CreateColumn.vue +++ b/src/modules/modals/CreateColumn.vue @@ -104,7 +104,6 @@ import SelectionForm from '../../shared/components/ncTable/partials/columnTypePa import SelectionMultiForm from '../../shared/components/ncTable/partials/columnTypePartials/forms/SelectionMultiForm.vue' import { showError, showInfo, showSuccess, showWarning } from '@nextcloud/dialogs' import '@nextcloud/dialogs/dist/index.css' -import { mapGetters } from 'vuex' import ColumnTypeSelection from '../main/partials/ColumnTypeSelection.vue' import TextRichForm from '../../shared/components/ncTable/partials/columnTypePartials/forms/TextRichForm.vue' import { ColumnTypes } from '../../shared/components/ncTable/mixins/columnHandler.js' diff --git a/src/modules/modals/CreateRow.vue b/src/modules/modals/CreateRow.vue index 07f26c04e..29ad49849 100644 --- a/src/modules/modals/CreateRow.vue +++ b/src/modules/modals/CreateRow.vue @@ -37,7 +37,6 @@ import { NcModal, NcCheckboxRadioSwitch, NcNoteCard, NcButton } from '@nextcloud/vue' import { showError, showSuccess } from '@nextcloud/dialogs' import '@nextcloud/dialogs/dist/index.css' -import { mapGetters } from 'vuex' import ColumnFormComponent from '../main/partials/ColumnFormComponent.vue' export default { diff --git a/src/modules/modals/DeleteColumn.vue b/src/modules/modals/DeleteColumn.vue index 3b9b96b27..fbcd61e63 100644 --- a/src/modules/modals/DeleteColumn.vue +++ b/src/modules/modals/DeleteColumn.vue @@ -14,7 +14,6 @@ import DialogConfirmation from '../../shared/modals/DialogConfirmation.vue' import { showError } from '@nextcloud/dialogs' import '@nextcloud/dialogs/dist/index.css' -import { mapGetters } from 'vuex' export default { name: 'DeleteColumn', diff --git a/src/modules/modals/Modals.vue b/src/modules/modals/Modals.vue index 455f9f680..0e71629ab 100644 --- a/src/modules/modals/Modals.vue +++ b/src/modules/modals/Modals.vue @@ -120,8 +120,9 @@ export default { // rows subscribe('tables:row:create', columnsInfo => { this.columnsForRow = columnsInfo }) subscribe('tables:row:edit', rowInfo => { this.editRow = rowInfo }) - subscribe('tables:row:delete', tableInfo => { - this.rowsToDelete = tableInfo }) + subscribe('tables:row:delete', tableInfo => { + this.rowsToDelete = tableInfo + }) // misc subscribe('tables:modal:import', element => { this.importToElement = element }) @@ -133,8 +134,9 @@ export default { unsubscribe('tables:column:delete', columnInfo => { this.columnToDelete = columnInfo }) unsubscribe('tables:row:create', columnsInfo => { this.columnsForRow = columnsInfo }) unsubscribe('tables:row:edit', rowInfo => { this.editRow = rowInfo }) - unsubscribe('tables:row:delete', tableInfo => { - this.rowsToDelete = tableInfo }) + unsubscribe('tables:row:delete', tableInfo => { + this.rowsToDelete = tableInfo + }) unsubscribe('tables:view:edit', view => { this.viewToEdit = { view, createView: false } }) unsubscribe('tables:view:create', tableInfos => { this.viewToEdit = { diff --git a/src/shared/components/ncTable/sections/CustomTable.vue b/src/shared/components/ncTable/sections/CustomTable.vue index 3b9c009c7..e07fc0230 100644 --- a/src/shared/components/ncTable/sections/CustomTable.vue +++ b/src/shared/components/ncTable/sections/CustomTable.vue @@ -222,7 +222,7 @@ export default { subscribe('tables:selected-rows:deselect', tableId => this.deselectAllRows(tableId)) }, beforeDestroy() { - unsubscribe('tables:selected-rows:deselect', tableId => this.deselectAllRows(tableId) ) + unsubscribe('tables:selected-rows:deselect', tableId => this.deselectAllRows(tableId)) }, methods: {