-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfeedback.js
More file actions
41 lines (38 loc) · 799 Bytes
/
feedback.js
File metadata and controls
41 lines (38 loc) · 799 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
module.exports = {
/**
* Get the available feedbacks.
*
* !!! Utilized by bmd-multiview16 !!!
*
* @returns {Object[]} the available feedbacks
* @access public
* @since 1.2.0
*/
getFeedbacks() {
var feedbacks = {};
feedbacks['main'] = {
label: 'Follow remote key',
description: 'Follows the remote bank',
options: [
{
type: 'textinput',
label: 'Page',
id: 'page',
default: 1
},
{
type: 'textinput',
label: 'Bank',
id: 'bank',
default: 1
}
],
callback: (feedback, bank) => {
if (this.banks && this.banks[feedback.options.page] && this.banks[feedback.options.page][feedback.options.bank]) {
return this.banks[feedback.options.page][feedback.options.bank];
}
}
};
return feedbacks;
}
}