Add the possibility to run workflows with manual trigger from the command K with no records selected (#8342)

https://github.com/user-attachments/assets/9f094439-8d19-4a6b-883b-456294f691d8
This commit is contained in:
Raphaël Bosi
2024-11-06 11:43:18 +01:00
committed by GitHub
parent ac7d740135
commit 7f51eb8c3c
13 changed files with 172 additions and 76 deletions

View File

@ -1,11 +0,0 @@
import { useRecoilValue } from 'recoil';
import { isCurrentUserLoadedState } from '@/auth/states/isCurrentUserLoadingState';
import { objectMetadataItemsState } from '@/object-metadata/states/objectMetadataItemsState';
export const useUserOrMetadataLoading = () => {
const isCurrentUserLoaded = useRecoilValue(isCurrentUserLoadedState);
const objectMetadataItems = useRecoilValue(objectMetadataItemsState);
return !isCurrentUserLoaded || objectMetadataItems.length === 0;
};