Skip to content

Commit

Permalink
feat: print button [sc-20568]
Browse files Browse the repository at this point in the history
  • Loading branch information
reecebrend committed Sep 26, 2023
1 parent 8a70d04 commit 32209a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/builders/Action-template.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ function getOnClick (definition) {
'Action.Save': '',
'Action.ShowCard': `action('ShowCard', ${inspect({ card })})`,
'Action.Stop': 'action(\'StopCard\')',
'Action.Submit': `action('SubmitCard', ${inspect(data || {})} )`
'Action.Submit': `action('SubmitCard', ${inspect(data || {})} )`,
'Action.PrintCard': 'action(\'PrintCard\')'
}[type]
}
1 change: 1 addition & 0 deletions lib/builders/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ module.exports = {
'Action.Submit': { conversionFunction: require('./Action-template') },
'Action.ShowCard': { conversionFunction: require('./Action-template') },
'Action.PushCard': { conversionFunction: require('./Action-template') },
'Action.PrintCard': { conversionFunction: require('./Action-template') },
'Action.ReplaceCard': { conversionFunction: require('./Action-template') },
'Action.ClearArraySelection': { conversionFunction: require('./Action-template') },
'Action.Cancel': { conversionFunction: require('./Action-template') },
Expand Down

0 comments on commit 32209a2

Please sign in to comment.