Skip to content

Commit bc71f35

Browse files
committed
Use label specified in resource files
1 parent cd4868b commit bc71f35

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/NovaInlineRelationship.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -308,9 +308,7 @@ protected function setMetaFromClass(array $item, $attrib, $value = null)
308308
}
309309

310310
$item['meta'] = $class->jsonSerialize();
311-
// We are using Singular Label instead of name to display labels as compound name will be used in Vue
312-
$item['meta']['singularLabel'] = Str::title(str_replace('_', ' ', $item['label'] ?? $attrib));
313-
311+
$item['meta']['singularLabel'] = $item['label'] ?? $attrib;
314312
$item['meta']['placeholder'] = 'Add ' . $item['meta']['singularLabel'];
315313

316314
return $item;

0 commit comments

Comments
 (0)