Skip to content

Commit

Permalink
Merge pull request #7404 from NipuniBhagya/master
Browse files Browse the repository at this point in the history
Fix Sift connector configuration update notification
  • Loading branch information
NipuniBhagya authored Jan 26, 2025
2 parents 7cc8534 + f5eb796 commit f1e288f
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/flat-tigers-rhyme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@wso2is/admin.server-configurations.v1": patch
"@wso2is/i18n": patch
---

Fix minor issue in Sift connector update notification
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,11 @@ export const ConnectorEditPage: FunctionComponent<ConnectorEditPageInterface> =
"extensions:manage.serverConfigurations.userOnboarding.inviteUserToSetPassword." +
"notification.success.description"
);
case ServerConfigurationsConstants.SIFT_CONNECTOR_ID:
return t(
"governanceConnectors:connectorCategories.loginAttemptsSecurity.connectors.siftConnector" +
".notifications.configurationUpdate.success.description"
);
default:
return t(
"governanceConnectors:notifications.updateConnector.success.description",
Expand Down Expand Up @@ -531,6 +536,11 @@ export const ConnectorEditPage: FunctionComponent<ConnectorEditPageInterface> =
"extensions:manage.serverConfigurations.analytics.form." +
"notification.error.description"
);
case ServerConfigurationsConstants.SIFT_CONNECTOR_ID:
return t(
"governanceConnectors:connectorCategories.loginAttemptsSecurity.connectors.siftConnector" +
".notifications.configurationUpdate.error.description"
);
default:
return t(
"governanceConnectors:notifications.updateConnector.error.description",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
* under the License.
*/

import { NotificationItem } from "../common";

export interface governanceConnectorsNS {
notifications: {
getConnectorCategories: {
Expand Down Expand Up @@ -325,6 +327,12 @@ export interface governanceConnectorsNS {
placeholder: string;
};
};
notifications: {
configurationUpdate: {
success: NotificationItem;
error: NotificationItem;
};
};
};
};
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,18 @@ export const governanceConnectors: governanceConnectorsNS = {
label: "Sift API Key",
placeholder: "Enter Sift API Key"
}
},
notifications: {
configurationUpdate: {
error: {
description: "An error occurred while updating the Sift configuration.",
message: "Update Error"
},
success: {
description: "Successfully updated the Sift configuration.",
message: "Update Successful"
}
}
}
}
}
Expand Down

0 comments on commit f1e288f

Please sign in to comment.