1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
unleash.unleash/frontend/src/hooks
andreas-unleash 83bb9b1656
Feat: enable toggle dialog (#3686)
<!-- Thanks for creating a PR! To make it easier for reviewers and
everyone else to understand what your changes relate to, please add some
relevant content to the headings below. Feel free to ignore or delete
sections that you don't think are relevant. Thank you! ❤️ -->
- Creates a dialog when the feature has ONLY disabled strategies and the
environment in turned on
- Adds functionality to either `enable` the strategies or add the
default one (if a project specific default strategy is set, uses it)
## About the changes
<!-- Describe the changes introduced. What are they and why are they
being introduced? Feel free to also add screenshots or steps to view the
changes if they're visual. -->

<!-- Does it close an issue? Multiple? -->



Uploading Screen Recording 2023-05-05 at 17.40.48.mov…



Closes #

<!-- (For internal contributors): Does it relate to an issue on public
roadmap? -->
<!--
Relates to [roadmap](https://github.com/orgs/Unleash/projects/10) item:
#
-->

### Important files
<!-- PRs can contain a lot of changes, but not all changes are equally
important. Where should a reviewer start looking to get an overview of
the changes? Are any files particularly important? -->


## Discussion points
<!-- Anything about the PR you'd like to discuss before it gets merged?
Got any questions or doubts? -->

---------

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-05-08 11:42:26 +03:00
..
api Feat: enable toggle dialog (#3686) 2023-05-08 11:42:26 +03:00
useChangeRequestAddStrategy.ts
useChangeRequestInReviewWarning.tsx
useChangeRequestsEnabled.test.tsx
useChangeRequestsEnabled.ts
useChangeRequestToggle.ts
useCollaborateData.tsx
useConditionallyHiddenColumns.ts
useDefaultProjectSettings.ts chore: remove projectScopedStickinessFlag (#3620) 2023-04-26 17:07:09 +03:00
useDragItem.ts
useEventSettings.ts
useFormErrors.ts
useGlobalLocalStorage.ts
useGlobalState.ts
useHasAccess.ts
useHiddenEnvironments.ts
useId.test.ts
useId.ts
useIsAppleDevice.ts
useKeyboardShortcut.ts
useLastViewedProject.ts
useLoading.ts
useLocationSettings.ts
useOnVisible.ts
useOptionalPathParam.ts
usePageTitle.ts
usePagination.ts
usePersistentGlobalState.ts
usePinnedFavorites.test.ts
usePinnedFavorites.ts
usePlausibleTracker.ts feat: add user tracking to demo (#3637) 2023-04-27 14:12:02 +01:00
useQueryParams.ts
useQueryStringNumberState.ts
useQueryStringState.ts
useRequiredPathParam.ts
useRequiredQueryParam.ts
useSearch.test.ts
useSearch.ts
useTabs.ts
useThemeMode.ts
useToast.tsx
useUsersPlan.ts
useVirtualizedRange.ts
useWeakMap.ts