Skip to content

Commit 0298100

Browse files
committed
wip: Provide ready-made configuration snippets to help set up the app's configuration file - added top pane activity link/stamp (#1140)
1 parent e5bc311 commit 0298100

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

extras/configs/panes.top.js

+19
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,25 @@
11
const helpers = require('./helpers.js')
22

33
module.exports = {
4+
activityLink: (name, icon, tooltip, params = null) => {
5+
return {
6+
id: `${name}-activity-action`,
7+
icon,
8+
tooltip,
9+
route: { name: `${name}-activity`, params }
10+
}
11+
},
12+
activityStamp: (name, icon, label) => {
13+
return {
14+
id: `${name}-activity-stamp`,
15+
component: 'KStamp',
16+
icon,
17+
iconSize: 'sm',
18+
text: label,
19+
direction: 'horizontal',
20+
class: 'text-grey-7'
21+
}
22+
},
423
searchText: (options) => {
524
// fields: fields to search on
625
const fields = options?.fields || ['name', 'description']

0 commit comments

Comments
 (0)