chore: used variable for better code visibility

This commit is contained in:
Shariq Ansari 2022-05-19 13:07:47 +05:30
parent 58df70fc00
commit da999a9727

View file

@ -241,12 +241,9 @@ export default class QuickListWidget extends Widget {
if (filters) {
frappe.route_options = filters;
}
let route = frappe.utils.generate_route({type: 'doctype', name: this.document_type});
this.see_all_button = $(`
<a href="${frappe.utils.generate_route({
type: 'doctype',
name: this.document_type
})}"class="see-all btn btn-xs">View List</a>
<a href="${route}"class="see-all btn btn-xs">View List</a>
`).appendTo(this.footer);
}
}