-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #721 from Alice1319/feature/add_modify_for_myservices
add modify ui.
- Loading branch information
Showing
19 changed files
with
1,022 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
src/components/content/deployedServices/myServices/query/useGetServiceTemplateDetails.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* SPDX-FileCopyrightText: Huawei Inc. | ||
*/ | ||
|
||
import { useQuery } from '@tanstack/react-query'; | ||
import { ServiceVendorService } from '../../../../../xpanse-api/generated'; | ||
|
||
export default function useGetServiceTemplateDetails(serviceTemplateId: string | undefined) { | ||
return useQuery({ | ||
queryKey: ['getServiceTemplateDetails', serviceTemplateId], | ||
queryFn: () => ServiceVendorService.details(serviceTemplateId ?? ''), | ||
enabled: serviceTemplateId !== undefined && serviceTemplateId.length > 0, | ||
}); | ||
} |
Oops, something went wrong.