- navigate(`/${PAGES.SERVICERELEASEPROCESS}/form`)
- }
- onCardClick={(item: CardItems) => {
- // TODO: workaround - fix CardItems type
- const cardItem: any = item
- if (
- cardItem.status === ProvidedServiceStatusEnum.PENDING ||
- cardItem.status === ProvidedServiceStatusEnum.CREATED
- ) {
- dispatch(setServiceId(item.id ?? ''))
- navigate(`/${PAGES.SERVICERELEASEPROCESS}/form`)
- } else {
- navigate(`/${PAGES.SERVICE_DETAIL}/${item.id}`)
- }
+ {isFetching ? (
+
+ {
- sortMenu === ServiceSubMenuItems.DEACTIVATE &&
- navigate(`/${PAGES.DEACTIVATE}/${id}`, {
- state: items,
- })
- return undefined
- }}
- tooltipText={t('serviceoverview.submenuNotAvailable')}
/>
) : (
-
+ <>
+ {!isSuccess && (
+
+ )}
+ {items && items.length > 0 && isSuccess ? (
+
+
+ navigate(`/${PAGES.SERVICERELEASEPROCESS}/form`)
+ }
+ onCardClick={(item: CardItems) => {
+ // TODO: workaround - fix CardItems type
+ const cardItem: any = item
+ if (
+ cardItem.status === ProvidedServiceStatusEnum.PENDING ||
+ cardItem.status === ProvidedServiceStatusEnum.CREATED
+ ) {
+ dispatch(setServiceId(item.id ?? ''))
+ navigate(`/${PAGES.SERVICERELEASEPROCESS}/form`)
+ } else {
+ navigate(`/${PAGES.SERVICE_DETAIL}/${item.id}`)
+ }
+ }}
+ subMenu={true}
+ submenuOptions={submenuOptions}
+ submenuClick={(sortMenu: string, id: string | undefined) => {
+ sortMenu === ServiceSubMenuItems.DEACTIVATE &&
+ navigate(`/${PAGES.DEACTIVATE}/${id}`, {
+ state: items,
+ })
+ return undefined
+ }}
+ tooltipText={t('serviceoverview.submenuNotAvailable')}
+ />
+
+ ) : (
+
+ )}
+ >
)}
)}
- {!subscriptions ? (
+ {isFetching ? (