From 9fd9452d27a2dc10fa7c22738e0cb86736ee217f Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Thu, 25 Oct 2018 00:06:27 +0530 Subject: [PATCH] Show Print only if doc is submitted and has printFormat --- ui/components/Form/FormActions.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ui/components/Form/FormActions.vue b/ui/components/Form/FormActions.vue index 4e052997..cae77d36 100644 --- a/ui/components/Form/FormActions.vue +++ b/ui/components/Form/FormActions.vue @@ -5,7 +5,7 @@ {{ _('Save') }} {{ _('Submit') }} {{ _('Revert') }} -
+
{{ _('Print') }}
@@ -29,6 +29,7 @@ export default { showSubmit: false, showRevert: false, showNextAction: false, + showPrint: false, disableSave: false } }, @@ -60,6 +61,10 @@ export default { !this.doc._notInserted && this.links.length; + this.showPrint = + this.doc.submitted === 1 + && this.meta.print + this.showSave = this.doc._notInserted ? true :