mirror of
https://github.com/frappe/books.git
synced 2024-11-10 15:50:56 +00:00
minor
This commit is contained in:
parent
9fdc94bd93
commit
610d592310
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user