Skip to content

Commit

Permalink
update SSOSettings
Browse files Browse the repository at this point in the history
  • Loading branch information
vashjs committed Aug 6, 2024
1 parent b3e77c8 commit df21721
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/settings/SSOSettings/SSOSettings.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { useRef } from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage, useIntl } from 'react-intl';
import { useQueryClient } from 'react-query';

import { TitleManager, useOkapiKy, useStripes } from '@folio/stripes/core';
import {
Expand All @@ -10,13 +11,14 @@ import {

import { patronIdentifierTypes, samlBindingTypes } from '../../constants';
import SamlForm from './SamlForm';
import { useSamlConfiguration } from '../../hooks/useSamlConfiguration';
import { SAML_CONFIGURATION, useSamlConfiguration } from '../../hooks/useSamlConfiguration';
import { useSamlConfigurationUpdate } from '../../hooks/useSamlConfigurationUpdate';


const SSOSettings = ({ label }) => {
const intl = useIntl();
const stripes = useStripes();
const queryClient = useQueryClient();
const ky = useOkapiKy();
const callout = useRef(null);
const downloadButton = useRef(null);
Expand All @@ -26,6 +28,7 @@ const SSOSettings = ({ label }) => {
const { updateSamlConfiguration } = useSamlConfigurationUpdate({
onSuccess: () => {
callout.current.sendCallout({ message: <FormattedMessage id="ui-tenant-settings.settings.updated" /> });
queryClient.invalidateQueries(SAML_CONFIGURATION);
}
});

Expand Down

0 comments on commit df21721

Please sign in to comment.