@adminforth/many2many 1.0.3 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -80,7 +80,7 @@ export default class extends AdminForthPlugin {
80
80
  create: false,
81
81
  edit: false
82
82
  },
83
- label: this.options.linkedResourceId
83
+ label: this.options.labelForColumn || this.options.linkedResourceId
84
84
  };
85
85
  resourceConfig.columns.push(virtualColumn);
86
86
  // ** HOOKS FOR CREATE **//
package/index.ts CHANGED
@@ -75,7 +75,7 @@ export default class extends AdminForthPlugin {
75
75
  create: false,
76
76
  edit: false
77
77
  },
78
- label: this.options.linkedResourceId
78
+ label: this.options.labelForColumn || this.options.linkedResourceId
79
79
  };
80
80
  resourceConfig.columns.push(virtualColumn);
81
81
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/many2many",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -46,6 +46,6 @@
46
46
  "semantic-release-slack-bot": "^4.0.2"
47
47
  },
48
48
  "peerDependencies": {
49
- "adminforth": "^2.4.0-next.308"
49
+ "adminforth": "^2.13.0-next.51"
50
50
  }
51
51
  }
package/types.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export interface PluginOptions {
2
2
  linkedResourceId: string
3
3
  dontDeleteJunctionRecords?: boolean
4
+ labelForColumn?: string
4
5
  }