mirror of
https://github.com/Telecominfraproject/wlan-cloud-ui.git
synced 2025-10-29 18:02:36 +00:00
Added Passpoint profile to Add/Update profile
This commit is contained in:
@@ -79,6 +79,15 @@ const AddProfile = () => {
|
||||
variables: { customerId, type: 'rf' },
|
||||
fetchPolicy: 'network-only',
|
||||
});
|
||||
|
||||
const { data: passpointProfiles, fetchMore: fetchMorePasspointProfiles } = useQuery(
|
||||
GET_ALL_PROFILES(),
|
||||
{
|
||||
variables: { customerId, type: 'rf' },
|
||||
fetchPolicy: 'network-only',
|
||||
}
|
||||
);
|
||||
|
||||
const [createProfile] = useMutation(CREATE_PROFILE);
|
||||
const history = useHistory();
|
||||
|
||||
@@ -117,6 +126,8 @@ const AddProfile = () => {
|
||||
fetchMoreProfiles(e, operatorProfiles, fetchMoreOperatorProfiles);
|
||||
else if (key === 'passpoint_osu_id_provider')
|
||||
fetchMoreProfiles(e, idProviderProfiles, fetchMoreIdProviderProfiles);
|
||||
else if (key === 'passpoint')
|
||||
fetchMoreProfiles(e, passpointProfiles, fetchMorePasspointProfiles);
|
||||
else fetchMoreProfiles(e, ssidProfiles, fetchMore);
|
||||
};
|
||||
|
||||
@@ -170,6 +181,7 @@ const AddProfile = () => {
|
||||
operatorProfiles={operatorProfiles?.getAllProfiles?.items}
|
||||
idProviderProfiles={idProviderProfiles?.getAllProfiles?.items}
|
||||
rfProfiles={rfProfiles?.getAllProfiles?.items}
|
||||
passpointProfiles={passpointProfiles?.getAllProfiles?.items}
|
||||
onFetchMoreProfiles={handleFetchMoreProfiles}
|
||||
fileUpload={handleFileUpload}
|
||||
/>
|
||||
|
||||
@@ -32,6 +32,8 @@ const GET_PROFILE = gql`
|
||||
osuSsidProfile {
|
||||
id
|
||||
name
|
||||
profileType
|
||||
details
|
||||
}
|
||||
childProfileIds
|
||||
createdTimestamp
|
||||
@@ -139,6 +141,14 @@ const ProfileDetails = () => {
|
||||
fetchPolicy: 'network-only',
|
||||
});
|
||||
|
||||
const { data: passpointProfiles, fetchMore: fetchMorePasspointProfiles } = useQuery(
|
||||
GET_ALL_PROFILES(),
|
||||
{
|
||||
variables: { customerId, type: 'rf' },
|
||||
fetchPolicy: 'network-only',
|
||||
}
|
||||
);
|
||||
|
||||
const [updateProfile] = useMutation(UPDATE_PROFILE);
|
||||
const [deleteProfile] = useMutation(DELETE_PROFILE);
|
||||
|
||||
@@ -269,6 +279,8 @@ const ProfileDetails = () => {
|
||||
fetchMoreProfiles(e, operatorProfiles, fetchMoreOperatorProfiles);
|
||||
else if (key === 'passpoint_osu_id_provider')
|
||||
fetchMoreProfiles(e, idProviderProfiles, fetchMoreIdProviderProfiles);
|
||||
else if (key === 'passpoint')
|
||||
fetchMoreProfiles(e, passpointProfiles, fetchMorePasspointProfiles);
|
||||
else fetchMoreProfiles(e, ssidProfiles, fetchMore);
|
||||
};
|
||||
|
||||
@@ -289,6 +301,7 @@ const ProfileDetails = () => {
|
||||
return (
|
||||
<ProfileDetailsPage
|
||||
name={data.getProfile.name}
|
||||
profileId={data?.getProfile?.id}
|
||||
profileType={data.getProfile.profileType}
|
||||
details={data.getProfile.details}
|
||||
childProfiles={data.getProfile.childProfiles}
|
||||
@@ -304,6 +317,7 @@ const ProfileDetails = () => {
|
||||
idProviderProfiles={idProviderProfiles?.getAllProfiles?.items}
|
||||
associatedSsidProfiles={data.getProfile?.associatedSsidProfiles}
|
||||
osuSsidProfile={data.getProfile?.osuSsidProfile}
|
||||
passpointProfiles={passpointProfiles?.getAllProfiles?.items}
|
||||
fileUpload={handleFileUpload}
|
||||
onFetchMoreProfiles={handleFetchMoreProfiles}
|
||||
onDownloadFile={handleDownloadFile}
|
||||
|
||||
Reference in New Issue
Block a user