Skip to content

Commit bb7f06e

Browse files
Merge pull request #541 from SoftwareBrothers/feat/448-remove-name-from-property-options
improvement: remove name from property options
2 parents fd96713 + 69b342a commit bb7f06e

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/backend/decorators/property-decorator.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class PropertyDecorator {
4747
this.property = property
4848
this._admin = admin
4949
this._resource = resource
50-
this.path = path || (options && options.name) || property.name()
50+
this.path = path || property.name()
5151

5252
/**
5353
* Options passed along with a given resource

src/backend/decorators/property-options.interface.ts

-5
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,6 @@ export default interface PropertyOptions {
5656
*/
5757
position?: number;
5858

59-
/**
60-
* Name of the property
61-
*/
62-
name?: string;
63-
6459
/**
6560
* If options should be limited to finite set. After setting this
6661
* in the UI you will see select box instead of the input

0 commit comments

Comments
 (0)