mirror of
https://github.com/Telecominfraproject/wlan-cloud-ui.git
synced 2026-03-20 21:39:22 +00:00
Compare commits
1 Commits
feature/TW
...
feature/TW
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5a49a0301e |
@@ -77,9 +77,15 @@ const ProfileDetails = () => {
|
||||
const { loading, error, data } = useQuery(GET_PROFILE, {
|
||||
variables: { id },
|
||||
});
|
||||
|
||||
const { data: ssidProfiles } = useQuery(GET_ALL_PROFILES, {
|
||||
variables: { customerId, type: 'ssid' },
|
||||
});
|
||||
|
||||
const { data: radiusProfiles } = useQuery(GET_ALL_PROFILES, {
|
||||
variables: { customerId, type: 'radius' },
|
||||
});
|
||||
|
||||
const [updateProfile] = useMutation(UPDATE_PROFILE);
|
||||
const [deleteProfile] = useMutation(DELETE_PROFILE);
|
||||
|
||||
@@ -170,6 +176,7 @@ const ProfileDetails = () => {
|
||||
ssidProfiles={
|
||||
(ssidProfiles && ssidProfiles.getAllProfiles && ssidProfiles.getAllProfiles.items) || []
|
||||
}
|
||||
radiusProfiles={radiusProfiles?.getAllProfiles?.items}
|
||||
fileUpload={handleFileUpload}
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user