소스 검색

style: Fix formatting

version-14
Suraj Shetty 3 년 전
committed by GitHub
부모
커밋
afd5956e31
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일20개의 추가작업 그리고 10개의 파일을 삭제
  1. +20
    -10
      frappe/public/js/frappe/web_form/web_form_list.js

+ 20
- 10
frappe/public/js/frappe/web_form/web_form_list.js 파일 보기

@@ -141,16 +141,26 @@ export default class WebFormList {
empty_state.classList.add("no-result", "text-muted", "flex", "justify-center", "align-center"); empty_state.classList.add("no-result", "text-muted", "flex", "justify-center", "align-center");


frappe.has_permission(this.doctype, "", "create", () => { frappe.has_permission(this.doctype, "", "create", () => {
new_button = `<a class="btn btn-primary btn-sm btn-new-doc hidden-xs" href="${window.location.pathname}?new=1">
${__("Create a new {0}", [__(this.doctype)])}
</a>`;

empty_state.innerHTML = `<div class="text-center">
<div>
<img src="/assets/frappe/images/ui-states/list-empty-state.svg" alt="Generic Empty State" class="null-state">
</div>
<p class="small mb-2">${__("No {0} found", [__(this.doctype)])}</p>
${new_button}`;
new_button = `
<a
class="btn btn-primary btn-sm btn-new-doc hidden-xs"
href="${window.location.pathname}?new=1">
${__("Create a new {0}", [__(this.doctype)])}
</a>
`;

empty_state.innerHTML = `
<div class="text-center">
<div>
<img
src="/assets/frappe/images/ui-states/list-empty-state.svg"
alt="Generic Empty State"
class="null-state">
</div>
<p class="small mb-2">${__("No {0} found", [__(this.doctype)])}</p>
${new_button}
</div>
`;


this.wrapper.appendChild(empty_state); this.wrapper.appendChild(empty_state);
}); });


불러오는 중...
취소
저장