Skip to content

Commit d8a37ad

Browse files
authored
Disabled multiple select for preconfigured connectors to avoid requesting bulk delete on them (#69459) (#69738)
1 parent 44e4659 commit d8a37ad

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

x-pack/plugins/triggers_actions_ui/public/application/sections/actions_connectors_list/components/actions_connectors_list.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ export const ActionsConnectorsList: React.FunctionComponent = () => {
275275
onSelectionChange(updatedSelectedItemsList: ActionConnectorTableItem[]) {
276276
setSelectedItems(updatedSelectedItemsList);
277277
},
278+
selectable: ({ isPreconfigured }: ActionConnectorTableItem) => !isPreconfigured,
278279
}
279280
: undefined
280281
}

x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,9 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
189189

190190
expect(await testSubjects.exists('deleteConnector')).to.be(false);
191191
expect(await testSubjects.exists('preConfiguredTitleMessage')).to.be(true);
192+
193+
const checkboxSelectRow = await testSubjects.find('checkboxSelectRow-my-server-log');
194+
expect(await checkboxSelectRow.getAttribute('disabled')).to.be('true');
192195
});
193196

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

0 commit comments

Comments
 (0)