Skip to content
This repository was archived by the owner on Jan 10, 2026. It is now read-only.
This repository was archived by the owner on Jan 10, 2026. It is now read-only.

CustomTableComponent: Edit-Click Emits Row Data #588

@FutzMonitor

Description

@FutzMonitor

Current Functionality

Currently when the CustomTableComponent's edit button is clicked it emits an event called edit-click which can be used to run whatever methods needed on the parent page. For example, the Seeding Report page uses this emitted event to disable the filters on the page so that users cannot alter the filters while editing a row. However, the emitted event does not emit any payload.

            this.rowToEditIndex = index
            this.currentlyEditing = true
            this.originalRow = JSON.parse(JSON.stringify({ 
                'id': this.rows[index].id,
                'data': this.rows[index].data
            }))
            this.editedRowData = { 
                'id': this.rows[index].id,
                'data': this.rows[index].data
            }
            this.$emit('edit-clicked')
        },

As can be seen, an event is emitted but no payload along with the event.

Desired Functionality

The edit-click emitted event needs to emit the row data of the row being edited. This will require editing the editRow method [here]. Additionally, you will need to add a test case in the CustomTable's Cypress test [here] that assures that this payload is sent is correct.

Metadata

Metadata

Assignees

Labels

enhancementImprovement to the project

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions