chore: used variable for better code visibility
This commit is contained in:
parent
58df70fc00
commit
da999a9727
1 changed files with 2 additions and 5 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue