mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-20 00:08:02 +01:00
fix: use correct flag name (#5026)
Fixes a bug with using the wrong feature name Signed-off-by: andreas-unleash <andreas@getunleash.ai>
This commit is contained in:
parent
9c047e0756
commit
ff97dfd733
@ -7,8 +7,8 @@ import {
|
||||
DELETE_FEATURE,
|
||||
UPDATE_FEATURE,
|
||||
} from 'component/providers/AccessProvider/permissions';
|
||||
import ToastRenderer from '../../common/ToastRenderer/ToastRenderer';
|
||||
import { testServerRoute, testServerSetup } from '../../../utils/testServer';
|
||||
import ToastRenderer from 'component/common/ToastRenderer/ToastRenderer';
|
||||
import { testServerRoute, testServerSetup } from 'utils/testServer';
|
||||
|
||||
const mockedFeatures = [
|
||||
{
|
||||
@ -54,7 +54,7 @@ const Component = () => {
|
||||
|
||||
const server = testServerSetup();
|
||||
|
||||
const setupApi = (disableAllEnvsOnRevive = false) => {
|
||||
const setupApi = (disableEnvsOnRevive = false) => {
|
||||
testServerRoute(
|
||||
server,
|
||||
'/api/admin/projects/default/revive',
|
||||
@ -66,7 +66,7 @@ const setupApi = (disableAllEnvsOnRevive = false) => {
|
||||
testServerRoute(server, '/api/admin/ui-config', {
|
||||
environment: 'Open Source',
|
||||
flags: {
|
||||
disableAllEnvsOnRevive,
|
||||
disableEnvsOnRevive,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
@ -28,7 +28,7 @@ export const ArchivedFeatureReviveConfirm = ({
|
||||
}: IArchivedFeatureReviveConfirmProps) => {
|
||||
const { setToastData, setToastApiError } = useToast();
|
||||
const { reviveFeatures } = useProjectApi();
|
||||
const disableAllEnvsOnRevive = useUiFlag('disableAllEnvsOnRevive');
|
||||
const disableAllEnvsOnRevive = useUiFlag('disableEnvsOnRevive');
|
||||
|
||||
const onReviveFeatureToggle = async () => {
|
||||
try {
|
||||
|
@ -70,7 +70,7 @@ export type UiFlags = {
|
||||
datadogJsonTemplate?: boolean;
|
||||
dependentFeatures?: boolean;
|
||||
internalMessageBanners?: boolean;
|
||||
disableAllEnvsOnRevive?: boolean;
|
||||
disableEnvsOnRevive?: boolean;
|
||||
};
|
||||
|
||||
export interface IVersionInfo {
|
||||
|
Loading…
Reference in New Issue
Block a user