Skip to content
4 changes: 2 additions & 2 deletions app/client/src/ce/constants/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,8 @@ export const DATASOURCE_UPDATE = (dsName: string) =>
`${dsName} datasource updated successfully`;
export const DATASOURCE_VALID = (dsName: string) =>
`${dsName} datasource is valid`;
export const EDIT_DATASOURCE = () => "Edit datasource";
export const SAVE_DATASOURCE = () => "Save as datasource";
export const EDIT_DATASOURCE = () => "Edit";
export const SAVE_DATASOURCE = () => "Save";
export const SAVE_DATASOURCE_MESSAGE = () =>
"Save the URL as a datasource to access authentication settings";
export const EDIT_DATASOURCE_MESSAGE = () =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ function StoreAsDatasource(props: storeDataSourceProps) {
const dispatch = useDispatch();
const basePageId = useSelector(getCurrentBasePageId);

// eslint-disable-next-line react-perf/jsx-no-new-function-as-prop
const saveOrEditDatasource = () => {
if (props.shouldSave) {
dispatch(storeAsDatasource());
Expand Down Expand Up @@ -64,7 +65,7 @@ function StoreAsDatasource(props: storeDataSourceProps) {
kind="secondary"
onClick={saveOrEditDatasource}
size="md"
startIcon={props.shouldSave ? "cloud" : "pencil-line"}
startIcon={props.shouldSave ? "database-2-line" : "pencil-line"}
>
{props.shouldSave
? createMessage(SAVE_DATASOURCE)
Expand Down