-
+
diff --git a/frontend/app/components/FFlags/FlagView/FlagView.tsx b/frontend/app/components/FFlags/FlagView/FlagView.tsx
index 9a31ebae2..3a4e6413e 100644
--- a/frontend/app/components/FFlags/FlagView/FlagView.tsx
+++ b/frontend/app/components/FFlags/FlagView/FlagView.tsx
@@ -100,10 +100,12 @@ function FlagView({ siteId, fflagId }: { siteId: string; fflagId: string }) {
+
))}
diff --git a/frontend/app/components/FFlags/NewFFlag/Conditions.tsx b/frontend/app/components/FFlags/NewFFlag/Conditions.tsx
index 17fe36817..34c4ad93d 100644
--- a/frontend/app/components/FFlags/NewFFlag/Conditions.tsx
+++ b/frontend/app/components/FFlags/NewFFlag/Conditions.tsx
@@ -12,9 +12,10 @@ interface Props {
conditions: Conditions;
removeCondition: (ind: number) => void;
index: number
+ readonly?: boolean;
}
-function RolloutCondition({ set, conditions, removeCondition, index }: Props) {
+function RolloutCondition({ set, conditions, removeCondition, index, readonly }: Props) {
const [forceRender, forceRerender] = React.useState(false);
const onAddFilter = (filter = {}) => {
conditions.filter.addFilter(filter);
@@ -47,17 +48,16 @@ function RolloutCondition({ set, conditions, removeCondition, index }: Props) {
Condition
Set {set}
-
removeCondition(index)}
- >
-
-
+ {readonly ? null : (
+
removeCondition(index)}
+ >
+
+
+ )}
-
+
0 ? 'p-2 border-b mb-2' : ''}>
+ {readonly && !conditions.filter?.filters?.length ? (
+
No conditions
+ ) : null}
-
-
-
+ {readonly ? null : (
+
+
+
+ )}
Rollout to
- %
}
- />
+ {readonly ? (
+
{conditions.rolloutPercentage}%
+ ) : (
+
%
}
+ />
+ )}
+
of sessions