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 5c0fb09 commit f3d6515
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 @@ -277,6 +277,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 f3d6515

Please sign in to comment.