mirror of
https://github.com/moghtech/komodo.git
synced 2026-04-29 04:10:01 -05:00
only show actions if more than 0 Actions on resource
This commit is contained in:
@@ -73,8 +73,8 @@ export const Resource = () => {
|
||||
</div>
|
||||
}
|
||||
>
|
||||
{/* Actions and Updates */}
|
||||
{canExecute && (
|
||||
{/* Actions */}
|
||||
{canExecute && Object.keys(Components.Actions).length > 0 && (
|
||||
<Section title="Actions" icon={<Clapperboard className="w-4 h-4" />}>
|
||||
<div className="flex gap-4 items-center">
|
||||
{Object.entries(Components.Actions).map(([key, Action]) => (
|
||||
@@ -83,6 +83,8 @@ export const Resource = () => {
|
||||
</div>
|
||||
</Section>
|
||||
)}
|
||||
|
||||
{/* Updates */}
|
||||
<ResourceUpdates type={type} id={id} />
|
||||
|
||||
{/* Resource specific */}
|
||||
|
||||
Reference in New Issue
Block a user