Open iamoat opened 2 years ago
Also Country field shows the key And Currency field shows raw number
+1
+1
Technically only a small change is required to make this work...
add in resources/js/components/PanelItem.vue:
import { FieldValue } from '@/mixins';
-- technically from "laravel-nova"; but that wouldn't compile for me.
and
mixins: [FieldValue],
and remove fieldValue() function.
But to be able to compile it on my machine I had to make a ton of changes.
If someone can make a PR out of it it'd be great. https://github.com/ideatocode/nova-grid-system/tree/fieldValue. I don't know how to do it with just the relevant change.
+1 I have same problem:
After adding NovaGridSystem
in NovaServiceProvider
, the method dislplayUsingLabels()
seems not to work correctly on DetailView, it shows key and not label, Index and Form are OK.
Select::make(__('nova-control-panel.field.variation_type'), 'type')
->sortable()
->options([
VariationTypeEnum::Suspend->value => __('common.enum.variation_type_suspend'),
VariationTypeEnum::Preferences->value => __('common.enum.variation_type_preferences'),
VariationTypeEnum::Days->value => __('common.enum.variation_type_days'),
])
->displayUsingLabels()->rules(['required']),
+1 here, same issue
It shows a key value insteand of the label value.