From 32209a29833853f551cd4aa3123418abca2185cf Mon Sep 17 00:00:00 2001 From: reecebrend Date: Tue, 5 Sep 2023 14:11:32 +0100 Subject: [PATCH] feat: print button [sc-20568] --- lib/builders/Action-template.js | 3 ++- lib/builders/index.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/builders/Action-template.js b/lib/builders/Action-template.js index 90d41a05..a6f95b7a 100644 --- a/lib/builders/Action-template.js +++ b/lib/builders/Action-template.js @@ -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] } diff --git a/lib/builders/index.js b/lib/builders/index.js index 8be7ff14..c8cb5d56 100644 --- a/lib/builders/index.js +++ b/lib/builders/index.js @@ -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') },