🔧 fix: disable action button when branch has no files or is not active

This commit is contained in:
Kiril Videlov 2023-12-13 20:39:53 +01:00 committed by Kiril Videlov
parent 69e15844d9
commit e3c257cb26

View File

@ -45,7 +45,7 @@
dispatch('action', 'generate-branch-name');
visible = false;
}}
disabled={!$aiGenEnabled}
disabled={!$aiGenEnabled || branch.files?.length == 0 || !branch.active}
/>
</ContextMenuSection>