diff --git a/app/assets/scripts/components/project/prime-panel/tabs/retrain/index.js b/app/assets/scripts/components/project/prime-panel/tabs/retrain/index.js
index c66d6b34..737d8f2c 100644
--- a/app/assets/scripts/components/project/prime-panel/tabs/retrain/index.js
+++ b/app/assets/scripts/components/project/prime-panel/tabs/retrain/index.js
@@ -24,6 +24,12 @@ import EditClass from './add-class.js';
function RetrainTab({ className }) {
const actorRef = ProjectMachineContext.useActorRef();
+
+ const currentCheckpoint = ProjectMachineContext.useSelector(
+ selectors.currentCheckpoint
+ );
+ const canAddClass = currentCheckpoint?.parent === null;
+
const retrainClasses = ProjectMachineContext.useSelector(
selectors.retrainClasses
);
@@ -170,17 +176,22 @@ function RetrainTab({ className }) {
as={DropdownTrigger}
variation='primary-plain'
useIcon='plus--small'
- title='Open dropdown'
className='add__class'
size='medium'
{...props}
+ visuallyDisabled={!canAddClass}
+ info={
+ canAddClass
+ ? 'Add a new class'
+ : 'New classes can only be added to the base model'
+ }
>
Add Class
)}
className='add-class__dropdown'
>
-
+ {canAddClass && }
>