Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/adminjs-options.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export interface AdminJSOptions {
* - change any arbitrary text in the UI
*
* This is the example for changing name of a couple of resources along with some
* properties to Polish. You can also use this technic to change any text even in english.
* properties to Polish. You can also use this technique to change any text even in english.
* So to change button label of a "new action" from default "Create new" to "Create new Comment"
* only for Comment resource, place it in action section.
*
Expand Down
2 changes: 1 addition & 1 deletion src/adminjs.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ describe('AdminJS', function () {
expect(Object.keys(loader.getComponents())).to.have.lengthOf(1)
})

it('returns uniqe id', function () {
it('returns unique id', function () {
expect(loader.getComponents()[this.result]).not.to.be.undefined
expect(this.result).to.be.a('string')
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export type ActionHeaderProps = {
* It indicates if action without a component was performed.
*/
actionPerformed?: (action: ActionResponse) => any;
/** An action objet */
/** An action object */
action: ActionJSON;
/** Optional tag which will be rendered as a {@link Badge} */
tag?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const getIndexFromSubpropertyPath = (subpropertyPath: string) => {

/**
* Converts property: PropertyJSON from an array to a sub-property for an actual item in the array
* It change path that it has index inside along with the label. Futhermore flat isArray is removed
* It change path that it has index inside along with the label. Furthermore flat isArray is removed
* ,because it was already handled, so that itemRenderer can render property as a regular one
*
* @param {PropertyJSON} arrayProperty property with path set to an root Array type property,
Expand Down