Commands backend, saving to file

This commit is contained in:
James Barnsley
2018-10-12 16:10:29 +13:00
parent 74a77ed5b0
commit 49aa6df033
12 changed files with 568 additions and 311 deletions

View File

@ -197,6 +197,12 @@ export function addQueueMetadata(tlids = [], from_uri = null){
* Commands (buttons)
**/
export function getCommands(){
return {
type: 'PUSHER_GET_COMMANDS'
}
}
export function setCommand(command){
return {
type: 'PUSHER_SET_COMMAND',
@ -211,10 +217,11 @@ export function removeCommand(id){
}
}
export function sendCommand(id){
export function sendCommand(id, notify = false){
return {
type: 'PUSHER_SEND_COMMAND',
id: id
id: id,
notify: notify
}
}