refactor: added deafult value for wrapper

This commit is contained in:
Shivam Mishra 2019-08-16 16:35:53 +05:30
parent 2d26f3bcf5
commit e4b7f33ed1

View file

@ -55,7 +55,7 @@ export default class WebForm extends frappe.ui.FieldGroup {
intro_wrapper.innerHTML = intro;
}
add_button(name, type, action, wrapper_class) {
add_button(name, type, action, wrapper_class=".web-form-actions") {
const button = document.createElement("button");
button.classList.add("btn", "btn-" + type, "btn-sm", "ml-2");
button.innerHTML = name;