mirror of
https://github.com/frappe/books.git
synced 2024-12-24 11:55:46 +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