restriction before choosing project for gallery filter api calling an removed unused code
This commit is contained in:
parent
f17594aad5
commit
1e3767d0c3
@ -47,6 +47,7 @@ export const useImageGalleryFilter = (project)=>{
|
|||||||
const response = await ImageGalleryRepository.getImageGalleryFilter(project);
|
const response = await ImageGalleryRepository.getImageGalleryFilter(project);
|
||||||
return response.data;
|
return response.data;
|
||||||
},
|
},
|
||||||
|
enabled:!!project
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -100,33 +100,6 @@ const ImageGalleryPage = () => {
|
|||||||
/>
|
/>
|
||||||
|
|
||||||
<div className="card page-min-h p-2">
|
<div className="card page-min-h p-2">
|
||||||
{/* {selectedProjectId && (
|
|
||||||
<div className="d-flex flex-row w-20 pb-2">
|
|
||||||
{!isLoading && assignedServices?.length === 0 ? (
|
|
||||||
<span className="badge bg-label-secondary">
|
|
||||||
Not service assiged yet
|
|
||||||
</span>
|
|
||||||
) : (
|
|
||||||
<select className="form-select form-select-sm">
|
|
||||||
<option>Select Service</option>
|
|
||||||
{isLoading ? (
|
|
||||||
<option>Loading...</option>
|
|
||||||
) : assignedServices.length === 1 ? (
|
|
||||||
<span className="badge bg-label-secondary">
|
|
||||||
{assignedServices[0].name}
|
|
||||||
</span>
|
|
||||||
) : (
|
|
||||||
assignedServices?.map((service) => (
|
|
||||||
<option key={service.id} value={service?.id}>
|
|
||||||
{service?.name}
|
|
||||||
</option>
|
|
||||||
))
|
|
||||||
)}
|
|
||||||
</select>
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
)} */}
|
|
||||||
|
|
||||||
<ImageGalleryListView
|
<ImageGalleryListView
|
||||||
filter={filter}
|
filter={filter}
|
||||||
filterData={filterData}
|
filterData={filterData}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user