Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: Cleopatra Enjeck M <patrathewhiz@gmail.com>
  • Loading branch information
enjeck committed Feb 4, 2024
1 parent c450c4d commit be56d86
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/modules/main/partials/TableView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand Down
1 change: 0 additions & 1 deletion src/modules/modals/CreateColumn.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
1 change: 0 additions & 1 deletion src/modules/modals/CreateRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 0 additions & 1 deletion src/modules/modals/DeleteColumn.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
10 changes: 6 additions & 4 deletions src/modules/modals/Modals.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand All @@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion src/shared/components/ncTable/sections/CustomTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit be56d86

Please sign in to comment.