Skip to content

Commit

Permalink
Disabled multiple select for preconfigured connectors to avoid reques…
Browse files Browse the repository at this point in the history
…ting bulk delete on them (elastic#69459)
  • Loading branch information
YulNaumenko committed Jun 23, 2020
1 parent 0d8fe11 commit e147ffa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ export const ActionsConnectorsList: React.FunctionComponent = () => {
onSelectionChange(updatedSelectedItemsList: ActionConnectorTableItem[]) {
setSelectedItems(updatedSelectedItemsList);
},
selectable: ({ isPreconfigured }: ActionConnectorTableItem) => !isPreconfigured,
}
: undefined
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {

expect(await testSubjects.exists('deleteConnector')).to.be(false);
expect(await testSubjects.exists('preConfiguredTitleMessage')).to.be(true);

const checkboxSelectRow = await testSubjects.find('checkboxSelectRow-my-server-log');
expect(await checkboxSelectRow.getAttribute('disabled')).to.be('true');
});

it('should not be able to edit a preconfigured connector', async () => {
Expand Down

0 comments on commit e147ffa

Please sign in to comment.