ash_admin icon indicating copy to clipboard operation
ash_admin copied to clipboard

Hide resources on demand.

Open jechol opened this issue 1 year ago • 3 comments

Is your feature request related to a problem? Please describe. I'm using ash_paper_trail for my resources, and since all resources in the API are included, Version resources make the list too messy.

Describe the solution you'd like In the resource, I can set it to be hidden.

Express the feature either with a change to resource syntax, or with a change to the resource interface

use Ash.Resource, extensions: [AshAdmin.Resource]

admin do
  show? false
end

jechol avatar Feb 29 '24 11:02 jechol

You can do this with the mixin: https://hexdocs.pm/ash_paper_trail/0.1.0/get-started-with-paper-trail.html#enriching-the-versions-resource

zachdaniel avatar Feb 29 '24 18:02 zachdaniel

@zachdaniel

I don't understand, could you provide more information?

As far as I know, there's no show? option in admin section of AshAdmin.Resource.

jechol avatar Mar 01 '24 01:03 jechol

Oh, wow. I didn't realize we only had it for apis :(

zachdaniel avatar Mar 01 '24 02:03 zachdaniel