Skip to content

Commit

Permalink
Reorder actions
Browse files Browse the repository at this point in the history
  • Loading branch information
krocheck authored Dec 20, 2020
1 parent 540e66b commit eacc96e
Showing 1 changed file with 40 additions and 40 deletions.
80 changes: 40 additions & 40 deletions actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,45 +12,6 @@ module.exports = {
getActions() {
var actions = {};

actions['route_to_previous'] = {
label: 'Return to previous route',
options: [
{
type: 'dropdown',
label: 'Destination',
id: 'destination',
default: '0',
choices: this.CHOICES_OUTPUTS
}
]
};

actions['load_route_from_file'] = {
label: 'Load Routes File',
options: [

{
type: 'textinput',
label: 'Source File',
id: 'source_file',
default: "C:\\VideoHub.txt"
}
]
};

actions['store_route_in_file'] = {
label: 'Save Routes File',
options: [

{
type: 'textinput',
label: 'Destination File',
id: 'destination_file',
default: "C:\\VideoHub.txt"
}
]
};

actions['rename_destination'] = {
label: 'Rename destination',
options: [
Expand Down Expand Up @@ -129,6 +90,19 @@ module.exports = {
]
};

actions['route_to_previous'] = {
label: 'Return to previous route',
options: [
{
type: 'dropdown',
label: 'Destination',
id: 'destination',
default: '0',
choices: this.CHOICES_OUTPUTS
}
]
};

if (this.serialCount > 0) {
actions['route_serial'] = {
label: 'Route serial port',
Expand Down Expand Up @@ -179,6 +153,32 @@ module.exports = {
actions['take'] = { label: 'Take' };
actions['clear'] = { label: 'Clear' };

actions['load_route_from_file'] = {
label: 'Load Routes File',
options: [

{
type: 'textinput',
label: 'Source File',
id: 'source_file',
default: "C:\\VideoHub.txt"
}
]
};

actions['store_route_in_file'] = {
label: 'Save Routes File',
options: [

{
type: 'textinput',
label: 'Destination File',
id: 'destination_file',
default: "C:\\VideoHub.txt"
}
]
};

return actions;
}
}
}

0 comments on commit eacc96e

Please sign in to comment.