diff --git a/actions.js b/actions.js index 3730a7c..b02bf48 100644 --- a/actions.js +++ b/actions.js @@ -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: [ @@ -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', @@ -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; } -} \ No newline at end of file +}