Added ListPage and other UI improvements

This commit is contained in:
scmmishra
2018-11-14 14:23:06 +05:30
committed by Aditya Hase
parent efb01c3f75
commit 85c2feec0d
12 changed files with 102 additions and 38 deletions

View File

@@ -46,15 +46,12 @@ export default {
}
},
mounted() {
frappe.call({
method: "erpnext.www.lms.get_content",
args: {
content_name: this.content,
content_type: this.type
}
}).then(r => {
this.contentData = r.message
});
this.getContent().then(data => this.contentData = data);
},
methods: {
getContent() {
return frappe.db.get_doc(this.type, this.content)
}
}
};
</script>