diff --git a/app/packages/core/src/plugins/SchemaIO/components/NativeModelEvaluationView/Evaluate.tsx b/app/packages/core/src/plugins/SchemaIO/components/NativeModelEvaluationView/Evaluate.tsx
index c9aed0c979..69022c3b5d 100644
--- a/app/packages/core/src/plugins/SchemaIO/components/NativeModelEvaluationView/Evaluate.tsx
+++ b/app/packages/core/src/plugins/SchemaIO/components/NativeModelEvaluationView/Evaluate.tsx
@@ -1,13 +1,25 @@
import { MuiButton } from "@fiftyone/components";
import { Add } from "@mui/icons-material";
+import { Box } from "@mui/material";
import React from "react";
export default function Evaluate(props: EvaluateProps) {
- const { onEvaluate } = props;
+ const { onEvaluate, permissions } = props;
+ const canEvaluate = permissions.can_evaluate;
return (
- } variant="contained">
- Evaluate Model
-
+
+ }
+ variant="contained"
+ disabled={!canEvaluate}
+ >
+ Evaluate Model
+
+
);
}
diff --git a/app/packages/core/src/plugins/SchemaIO/components/NativeModelEvaluationView/Evaluation.tsx b/app/packages/core/src/plugins/SchemaIO/components/NativeModelEvaluationView/Evaluation.tsx
index c7f9c24a4c..900ec29a45 100644
--- a/app/packages/core/src/plugins/SchemaIO/components/NativeModelEvaluationView/Evaluation.tsx
+++ b/app/packages/core/src/plugins/SchemaIO/components/NativeModelEvaluationView/Evaluation.tsx
@@ -560,20 +560,26 @@ export default function Evaluation(props: EvaluationProps) {
Evaluation notes
- {can_edit_note && (
-
- {
- setEditNoteState((note) => ({ ...note, open: true }));
- }}
- >
-
-
-
- )}
+
+ {
+ setEditNoteState((note) => ({ ...note, open: true }));
+ }}
+ disabled={!can_edit_note}
+ >
+
+
+
diff --git a/app/packages/core/src/plugins/SchemaIO/components/NativeModelEvaluationView/Overview.tsx b/app/packages/core/src/plugins/SchemaIO/components/NativeModelEvaluationView/Overview.tsx
index b0aa8f99d8..643ec14b7d 100644
--- a/app/packages/core/src/plugins/SchemaIO/components/NativeModelEvaluationView/Overview.tsx
+++ b/app/packages/core/src/plugins/SchemaIO/components/NativeModelEvaluationView/Overview.tsx
@@ -97,7 +97,7 @@ function EvaluationCard(props: EvaluationCardProps) {
}
/>
)}
- {status && }
+ {status && }
{note && }
diff --git a/app/packages/core/src/plugins/SchemaIO/components/NativeModelEvaluationView/Status.tsx b/app/packages/core/src/plugins/SchemaIO/components/NativeModelEvaluationView/Status.tsx
index 346cbb3245..bc3eb52635 100644
--- a/app/packages/core/src/plugins/SchemaIO/components/NativeModelEvaluationView/Status.tsx
+++ b/app/packages/core/src/plugins/SchemaIO/components/NativeModelEvaluationView/Status.tsx
@@ -4,10 +4,10 @@ import React from "react";
import { useTriggerEvent } from "./utils";
export default function Status(props: StatusProps) {
- const { status, canEdit, setStatusEvent } = props;
+ const { status, canEdit, readOnly, setStatusEvent } = props;
const triggerEvent = useTriggerEvent();
- if (canEdit) {
+ if (!readOnly) {
return (