Skip to content

Commit 107f7bd

Browse files
committed
wip: Provide ready-made configuration snippets to help set up the app's configuration file #1140
1 parent 40af5d4 commit 107f7bd

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

extras/configs/panes.left.js

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
module.exports = {
2-
activityLink: (name, icon, label, params = null) => {
3-
return {
2+
activityLink: (options) => {
3+
// 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({
48
id: `${name}-activity-action`,
59
icon,
610
label,
711
renderer: 'item',
812
route: { name: `${name}-activity`, params }
9-
}
13+
}, options)
1014
},
1115
settings: (options) => {
1216
return Object.assign({

0 commit comments

Comments
 (0)