We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40af5d4 commit 107f7bdCopy full SHA for 107f7bd
extras/configs/panes.left.js
@@ -1,12 +1,16 @@
1
module.exports = {
2
- activityLink: (name, icon, label, params = null) => {
3
- return {
+ activityLink: (options) => {
+ // name: the activity name. It is required
4
+ // params: params to be added to the router
5
+ const name = options.name
6
+ const params = options?.params
7
+ return Object.assign({
8
id: `${name}-activity-action`,
9
icon,
10
label,
11
renderer: 'item',
12
route: { name: `${name}-activity`, params }
- }
13
+ }, options)
14
},
15
settings: (options) => {
16
return Object.assign({
0 commit comments