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 (#69459) (#69738)
  • Loading branch information
YulNaumenko authored Jun 23, 2020
1 parent 44e4659 commit d8a37ad
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 d8a37ad

Please sign in to comment.