Skip to content

Commit 61c98cc

Browse files
barnabasJzachdaniel
authored andcommitted
fix: remove load from expr calc because it now shows a warning in ash
fixes #374
1 parent c40646a commit 61c98cc

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

documentation/dsls/DSL-AshAdmin.Resource.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Configure the admin dashboard for a given resource.
3737
| [`relationship_display_fields`](#admin-relationship_display_fields){: #admin-relationship_display_fields } | `list(atom)` | | The list of attributes to render when this resource is shown as a relationship on another resource's datatable. |
3838
| [`resource_group`](#admin-resource_group){: #admin-resource_group } | `atom` | | The group in the top resource dropdown that the resource appears in. |
3939
| [`show_sensitive_fields`](#admin-show_sensitive_fields){: #admin-show_sensitive_fields } | `list(atom)` | | The list of fields that should not be redacted in the admin UI even if they are marked as sensitive. |
40-
| [`show_calculations`](#admin-show_calculations){: #admin-show_calculations } | `list(atom)` | | A list of calculation that can be calculate when this resource is shown. By default, all calculations are included. |
40+
| [`show_calculations`](#admin-show_calculations){: #admin-show_calculations } | `list(atom)` | | A list of calculations that can be loaded when this resource is shown. By default, no calculations are included. |
4141
| [`label_field`](#admin-label_field){: #admin-label_field } | `atom` | | The field to use as the label when the resource appears in a relationship select or typeahead field on another resource's form. |
4242
| [`relationship_select_max_items`](#admin-relationship_select_max_items){: #admin-relationship_select_max_items } | `integer` | `50` | The maximum number of items to show in a select field when this resource is shown as a relationship on another resource's form. If the number of related resources is higher, a typeahead selector will be used. |
4343

lib/ash_admin/resource/transformers/add_position_sort_calculation.ex

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ defmodule AshAdmin.Resource.Transformers.AddPositionSortCalculation do
3030
arguments: [
3131
%{name: :search_term, type: :string, constraints: [], default: ""}
3232
],
33-
sortable?: true,
34-
load: [field: label_field]
33+
sortable?: true
3534
]
3635

3736
case Transformer.build_entity(

0 commit comments

Comments
 (0)