diff --git a/crates/frontend/src/components/context_card.rs b/crates/frontend/src/components/context_card.rs
index 28e214e04..06162cec0 100644
--- a/crates/frontend/src/components/context_card.rs
+++ b/crates/frontend/src/components/context_card.rs
@@ -47,6 +47,11 @@ pub fn context_card(
Column::default("VALUE".to_string()),
];
+ let actions_supported = show_actions
+ && !conditions
+ .iter()
+ .any(|condition| condition.left_operand == "variantIds");
+
let edit_unsupported = conditions
.iter()
.any(|condition| matches!(condition.operator, ConditionOperator::Other(_)));
@@ -57,23 +62,25 @@ pub fn context_card(
"Condition"
-
+
-
+
+ >
+
+ >
+
-
+
{"Edit Unsupported"}
@@ -84,14 +91,21 @@ pub fn context_card(
let context_id = context_id.get_value();
handle_delete.call(context_id);
}
- />
+ >
+
+
+
+ {"Edit Unsupported"}
+
+
diff --git a/crates/frontend/src/components/input.rs b/crates/frontend/src/components/input.rs
index 3735d3419..fec03f796 100644
--- a/crates/frontend/src/components/input.rs
+++ b/crates/frontend/src/components/input.rs
@@ -219,16 +219,17 @@ fn basic_input(
/>
{move || {
- error_rs
- .get()
- .map(|err| {
+ match error_rs.get() {
+ Some(err) => {
view! {
{err}
- }
- });
+ }.into_view()
+ },
+ None => ().into_view()
+ }
}}