} from '../api/provisioning';
import { getSystemInfo } from '../api/system';
import { AvailableFeaturesContext } from '../app/components/available-features/AvailableFeaturesContext';
+import { addGlobalSuccessMessage } from '../helpers/globalMessages';
+import { translate } from '../helpers/l10n';
import { mapReactQueryResult } from '../helpers/react-query';
import { Feature } from '../types/features';
import { GitHubMapping } from '../types/provisioning';
);
client.setQueryData(queryKey, newData);
}
+ addGlobalSuccessMessage(
+ translate('settings.authentication.github.configuration.roles_mapping.save_success'),
+ );
},
});
}
*/
import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query';
import { getValue, getValues, resetSettingValue, setSettingValue } from '../api/settings';
+import { addGlobalSuccessMessage } from '../helpers/globalMessages';
+import { translate } from '../helpers/l10n';
import { ExtendedSettingDefinition } from '../types/settings';
type SettingValue = string | boolean | string[];
onSuccess: (data) => {
if (data.length > 0) {
queryClient.invalidateQueries(['settings']);
+ addGlobalSuccessMessage(translate('settings.authentication.form.settings.save_success'));
}
},
});
},
onSuccess: () => {
queryClient.invalidateQueries(['settings']);
+ addGlobalSuccessMessage(translate('settings.authentication.form.settings.save_success'));
},
});
}
settings.authentication.form.provisioning=Provisioning
settings.authentication.form.provisioning_at_login=Just-in-Time user and group provisioning (default)
settings.authentication.form.other_provisioning_enabled=Already enabled for another provider. Only one identity provider can have automatic users and groups provisioning enabled.
+settings.authentication.form.settings.save_success=Settings saved successfully.
# GITHUB
settings.authentication.form.create.github=New GitHub Configuration
settings.authentication.github.configuration.roles_mapping.dialog.delete_custom_role=Delete custom role {0}
settings.authentication.github.configuration.roles_mapping.role_exists=Role already exists.
settings.authentication.github.configuration.roles_mapping.empty_custom_role=Custom roles should have some permissions.
+settings.authentication.github.configuration.roles_mapping.save_success=GitHub roles mapping saved successfully.
settings.authentication.github.configuration.unsaved_changes=You have unsaved changes.
# SAML