From 610d592310a41a82ffefcdb473467523c4faed35 Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Tue, 23 Oct 2018 02:21:34 +0530 Subject: [PATCH] minor --- ui/components/Form/FormActions.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/components/Form/FormActions.vue b/ui/components/Form/FormActions.vue index 1e3d9fe7..4e052997 100644 --- a/ui/components/Form/FormActions.vue +++ b/ui/components/Form/FormActions.vue @@ -34,13 +34,14 @@ export default { }, created() { this.doc.on('change', () => { - this.isDirty = this.doc._dirty; this.updateShowSubmittable(); }); this.updateShowSubmittable(); }, methods: { updateShowSubmittable() { + this.isDirty = this.doc._dirty; + this.showSubmit = this.meta.isSubmittable && !this.isDirty