KC: Display a clear message if connector already exists (#1839)

Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
This commit is contained in:
Robert Azizbekyan 2022-04-21 04:32:52 +04:00 committed by GitHub
parent b406d1bba3
commit 25266991df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -192,7 +192,7 @@ describe('Thunks', () => {
actions.createConnectorAction.failure({
alert: {
subject: 'local-first',
title: 'Kafka Connect Connector Create',
title: `Connector with name ${connectorName} already exists`,
response: {
status: 404,
statusText: 'Not Found',

View file

@ -111,7 +111,7 @@ export const createConnector =
const response = await getResponse(error);
const alert: FailurePayload = {
subject: [clusterName, connectName].join('-'),
title: `Kafka Connect Connector Create`,
title: `Connector with name ${newConnector.name} already exists`,
response,
};
dispatch(actions.createConnectorAction.failure({ alert }));